From e75e4c88f91c6ca5320d61580404e48931b30345 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Mar 2012 00:39:10 +0000 Subject: Use host-provided URI-map for internally mapped URIs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4061 a436a847-0d15-0410-975c-d299462d15a1 --- include/ingen/shared/LV2URIMap.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/ingen') diff --git a/include/ingen/shared/LV2URIMap.hpp b/include/ingen/shared/LV2URIMap.hpp index fc41f3bf..70c47a12 100644 --- a/include/ingen/shared/LV2URIMap.hpp +++ b/include/ingen/shared/LV2URIMap.hpp @@ -66,14 +66,18 @@ public: class URIDMapFeature : public Feature { public: URIDMapFeature(LV2URIMap* map, LV2_URID_Map* urid_map); + LV2_URID map(const char* uri); private: + static LV2_URID default_map(LV2_URID_Map_Handle h, const char* uri); LV2_URID_Map _feature_data; }; class URIDUnmapFeature : public Feature { public: URIDUnmapFeature(LV2URIMap* map, LV2_URID_Unmap* urid_unmap); + const char* unmap(const LV2_URID urid); private: + static const char* default_unmap(LV2_URID_Map_Handle h, LV2_URID uri); LV2_URID_Unmap _feature_data; }; @@ -93,7 +97,7 @@ private: const char* uri); static LV2_URID urid_map(LV2_URID_Map_Handle handle, const char* uri); - static const char* urid_unmap(LV2_URID_Map_Handle handle, LV2_URID urid); + static const char* urid_unmap(LV2_URID_Unmap_Handle handle, LV2_URID urid); typedef std::map EventToGlobal; typedef std::map GlobalToEvent; -- cgit v1.2.1