diff options
Diffstat (limited to 'src/shared/URIs.cpp')
-rw-r--r-- | src/shared/URIs.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/URIs.cpp b/src/shared/URIs.cpp index b6f1d0f4..c0753d5d 100644 --- a/src/shared/URIs.cpp +++ b/src/shared/URIs.cpp @@ -119,5 +119,17 @@ URIs::URIs() { } +uint32_t +URIs::map_uri(const char* uri) +{ + return static_cast<uint32_t>(g_quark_from_string(uri)); +} + +const char* +URIs::unmap_uri(uint32_t urid) +{ + return g_quark_to_string(urid); +} + } // namespace Shared } // namespace Ingen |