diff options
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)) {} |