diff options
author | David Robillard <d@drobilla.net> | 2011-10-22 03:53:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-22 03:53:44 +0000 |
commit | d3c91af24a76bf999f18eab5cb5136857c93125a (patch) | |
tree | a38a0d205d1477390fc6c3fcdf2bdfab8daf08ba /src/shared/URIs.cpp | |
parent | 0cfeb9f3a3a6098e1e2ea6edf07633af7a7d7eaa (diff) | |
download | ingen-d3c91af24a76bf999f18eab5cb5136857c93125a.tar.gz ingen-d3c91af24a76bf999f18eab5cb5136857c93125a.tar.bz2 ingen-d3c91af24a76bf999f18eab5cb5136857c93125a.zip |
Move basic URI map and unmap implementation to URIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3588 a436a847-0d15-0410-975c-d299462d15a1
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 |