summaryrefslogtreecommitdiffstats
path: root/src/server/ingen_lv2.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:56:50 +0100
commit44f7ad5222d824d81dc743045d5887418847e74e (patch)
tree1b41535ac00b8b225a25dba2873b064cb074bfa9 /src/server/ingen_lv2.cpp
parent90fca083052880479ad90d870e556f0648e32106 (diff)
downloadingen-44f7ad5222d824d81dc743045d5887418847e74e.tar.gz
ingen-44f7ad5222d824d81dc743045d5887418847e74e.tar.bz2
ingen-44f7ad5222d824d81dc743045d5887418847e74e.zip
Add URI class and remove use of Raul::URI
Diffstat (limited to 'src/server/ingen_lv2.cpp')
-rw-r--r--src/server/ingen_lv2.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 1b6652ae..b2806ab6 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -14,8 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdlib.h>
-
+#include <cstdlib>
#include <string>
#include <thread>
#include <vector>
@@ -37,6 +36,7 @@
#include "ingen/Parser.hpp"
#include "ingen/Serialiser.hpp"
#include "ingen/Store.hpp"
+#include "ingen/URI.hpp"
#include "ingen/World.hpp"
#include "ingen/ingen.h"
#include "ingen/runtime_paths.hpp"
@@ -232,7 +232,7 @@ public:
/** Unused since LV2 has no dynamic ports. */
virtual void port_property(const Raul::Path& path,
- const Raul::URI& uri,
+ const URI& uri,
const Atom& value) {}
virtual EnginePort* create_port(DuplexPort* graph_port) {
@@ -439,7 +439,7 @@ struct IngenPlugin {
};
static Lib::Graphs
-find_graphs(const std::string& manifest_uri)
+find_graphs(const URI& manifest_uri)
{
Sord::World world;
Parser parser;
@@ -447,7 +447,7 @@ find_graphs(const std::string& manifest_uri)
const std::set<Parser::ResourceRecord> resources = parser.find_resources(
world,
manifest_uri,
- Raul::URI(INGEN__Graph));
+ URI(INGEN__Graph));
Lib::Graphs graphs;
for (const auto& r : resources) {
@@ -496,7 +496,7 @@ ingen_instantiate(const LV2_Descriptor* descriptor,
SerdNode manifest_node = serd_node_new_file_uri(
(const uint8_t*)manifest_path.c_str(), nullptr, nullptr, true);
- Lib::Graphs graphs = find_graphs((const char*)manifest_node.buf);
+ Lib::Graphs graphs = find_graphs(URI((const char*)manifest_node.buf));
serd_node_free(&manifest_node);
const LV2Graph* graph = nullptr;
@@ -809,7 +809,7 @@ Lib::Lib(const char* bundle_path)
SerdNode manifest_node = serd_node_new_file_uri(
(const uint8_t*)manifest_path.c_str(), nullptr, nullptr, true);
- graphs = find_graphs((const char*)manifest_node.buf);
+ graphs = find_graphs(URI((const char*)manifest_node.buf));
serd_node_free(&manifest_node);
}