diff options
author | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-21 00:56:50 +0100 |
commit | a99b72e4adbc4c28fadc08d29299d99405f72db9 (patch) | |
tree | fb21f2cea8f5db1dc187cdbdd01f43e73bbddfff /src/URI.cpp | |
parent | 329f498d901f9be9c0c820749850f5277a17df5d (diff) | |
download | ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.gz ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.bz2 ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.zip |
Add FilePath class and remove use of glib path utilities
Diffstat (limited to 'src/URI.cpp')
-rw-r--r-- | src/URI.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/URI.cpp b/src/URI.cpp index cc7dde46..a9c12223 100644 --- a/src/URI.cpp +++ b/src/URI.cpp @@ -16,6 +16,7 @@ #include <cassert> +#include "ingen/FilePath.hpp" #include "ingen/URI.hpp" namespace Ingen { @@ -47,6 +48,13 @@ URI::URI(const Sord::Node& node) assert(node.type() == Sord::Node::URI); } +URI::URI(const FilePath& path) + : _node(serd_node_new_file_uri((const uint8_t*)path.c_str(), + NULL, + &_uri, + true)) +{} + URI::URI(const URI& uri) : _node(serd_node_new_uri(&uri._uri, NULL, &_uri)) {} |