summaryrefslogtreecommitdiffstats
path: root/src/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-15 22:41:18 +0100
committerDavid Robillard <d@drobilla.net>2017-02-15 23:26:02 +0100
commit2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3 (patch)
tree3033cd084a43a9dd904b96c7efaea2ff30a8502f /src/ingen
parent4a7ebef865e91e6df521d61f55c5baa709e7776f (diff)
downloadingen-2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3.tar.gz
ingen-2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3.tar.bz2
ingen-2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3.zip
Move static path stuff to its own header
Diffstat (limited to 'src/ingen')
-rw-r--r--src/ingen/ingen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp
index 9ca4b276..9f939621 100644
--- a/src/ingen/ingen.cpp
+++ b/src/ingen/ingen.cpp
@@ -176,7 +176,7 @@ main(int argc, char** argv)
const string graph = conf.option("load").ptr<char>();
engine_interface->get(Raul::URI("ingen:/plugins"));
- engine_interface->get(Node::main_uri());
+ engine_interface->get(main_uri());
std::lock_guard<std::mutex> lock(world->rdf_mutex());
world->parser()->parse_file(
@@ -185,14 +185,14 @@ main(int argc, char** argv)
const char* path = conf.option("server-load").ptr<char>();
if (serd_uri_string_has_scheme((const uint8_t*)path)) {
std::cout << "Loading " << path << " (server side)" << std::endl;
- engine_interface->copy(Raul::URI(path), Node::main_uri());
+ engine_interface->copy(Raul::URI(path), main_uri());
} else {
SerdNode uri = serd_node_new_file_uri(
(const uint8_t*)path, NULL, NULL, true);
std::cout << "Loading " << (const char*)uri.buf
<< " (server side)" << std::endl;
engine_interface->copy(Raul::URI((const char*)uri.buf),
- Node::main_uri());
+ main_uri());
serd_node_free(&uri);
}
}
@@ -202,12 +202,12 @@ main(int argc, char** argv)
const char* path = conf.option("save").ptr<char>();
if (serd_uri_string_has_scheme((const uint8_t*)path)) {
std::cout << "Saving to " << path << std::endl;
- engine_interface->copy(Node::main_uri(), Raul::URI(path));
+ engine_interface->copy(main_uri(), Raul::URI(path));
} else {
SerdNode uri = serd_node_new_file_uri(
(const uint8_t*)path, NULL, NULL, true);
std::cout << "Saving to " << (const char*)uri.buf << std::endl;
- engine_interface->copy(Node::main_uri(),
+ engine_interface->copy(main_uri(),
Raul::URI((const char*)uri.buf));
serd_node_free(&uri);
}