summaryrefslogtreecommitdiffstats
path: root/ingen/Node.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ingen/Node.hpp')
-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: