From ccb7d738d37fb21245a563cd41727f2609f0bc07 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 May 2015 09:12:44 +0000 Subject: 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 --- ingen/Node.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ingen/Node.hpp') 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: -- cgit v1.2.1