summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-01 15:44:14 -0400
committerDavid Robillard <d@drobilla.net>2016-08-17 17:25:42 -0400
commit17ad0ca1ad23b336b0fa5952f42dfad95397fc47 (patch)
tree1cac18de3f2b56ac7885fa7f9566ded8eab8872e /ingen
parentd6621e5d1e6f705a09106f62cc75cb33c8c18670 (diff)
downloadingen-17ad0ca1ad23b336b0fa5952f42dfad95397fc47.tar.gz
ingen-17ad0ca1ad23b336b0fa5952f42dfad95397fc47.tar.bz2
ingen-17ad0ca1ad23b336b0fa5952f42dfad95397fc47.zip
Rename main graph and control/notify ports
Diffstat (limited to 'ingen')
-rw-r--r--ingen/Node.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp
index c09a6fdd..fb5fc985 100644
--- a/ingen/Node.hpp
+++ b/ingen/Node.hpp
@@ -83,25 +83,25 @@ public:
return Raul::URI(uri() + '/');
}
- static Raul::URI root_graph_uri() { return Raul::URI("ingen:/graph"); }
+ static Raul::URI main_uri() { return Raul::URI("ingen:/main"); }
static bool uri_is_path(const Raul::URI& uri) {
- const size_t root_len = root_graph_uri().length();
- if (uri == root_graph_uri()) {
+ const size_t root_len = main_uri().length();
+ if (uri == main_uri()) {
return true;
} else {
- return uri.substr(0, root_len + 1) == root_graph_uri() + "/";
+ return uri.substr(0, root_len + 1) == main_uri() + "/";
}
}
static Raul::Path uri_to_path(const Raul::URI& uri) {
- return (uri == root_graph_uri())
+ return (uri == main_uri())
? Raul::Path("/")
- : Raul::Path(uri.substr(root_graph_uri().length()));
+ : Raul::Path(uri.substr(main_uri().length()));
}
static Raul::URI path_to_uri(const Raul::Path& path) {
- return Raul::URI(root_graph_uri() + path.c_str());
+ return Raul::URI(main_uri() + path.c_str());
}
protected: