summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-05-25 09:12:44 +0000
committerDavid Robillard <d@drobilla.net>2015-05-25 09:12:44 +0000
commitccb7d738d37fb21245a563cd41727f2609f0bc07 (patch)
treef13f750311b3b768b87b6dd64b47cd82584a6262 /ingen
parent4f00b8a2ae7148b3a13fd6af0e79eb9b6abf5634 (diff)
downloadingen-ccb7d738d37fb21245a563cd41727f2609f0bc07.tar.gz
ingen-ccb7d738d37fb21245a563cd41727f2609f0bc07.tar.bz2
ingen-ccb7d738d37fb21245a563cd41727f2609f0bc07.zip
Use ingen:/ as base URI on the wire.
This allows referring to non-graph items, which are converted to bundle-relative URIs on save, resolving issue #1049. Change root graph URI to ingen:/graph. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5687 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen')
-rw-r--r--ingen/Node.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp
index 4964b99e..181a9c53 100644
--- a/ingen/Node.hpp
+++ b/ingen/Node.hpp
@@ -80,21 +80,21 @@ public:
return Raul::URI(uri() + '/');
}
- static Raul::URI root_uri() { return Raul::URI("ingen:/root"); }
+ static Raul::URI root_graph_uri() { return Raul::URI("ingen:/graph"); }
static bool uri_is_path(const Raul::URI& uri) {
- return uri == root_uri() ||
- uri.substr(0, root_uri().length() + 1) == root_uri() + "/";
+ return uri == root_graph_uri() ||
+ uri.substr(0, root_graph_uri().length() + 1) == root_graph_uri() + "/";
}
static Raul::Path uri_to_path(const Raul::URI& uri) {
- return (uri == root_uri())
+ return (uri == root_graph_uri())
? Raul::Path("/")
- : Raul::Path(uri.substr(root_uri().length()));
+ : Raul::Path(uri.substr(root_graph_uri().length()));
}
static Raul::URI path_to_uri(const Raul::Path& path) {
- return Raul::URI(root_uri() + path.c_str());
+ return Raul::URI(root_graph_uri() + path.c_str());
}
protected: