summaryrefslogtreecommitdiffstats
path: root/include/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-15 00:39:10 +0000
committerDavid Robillard <d@drobilla.net>2012-03-15 00:39:10 +0000
commite75e4c88f91c6ca5320d61580404e48931b30345 (patch)
tree4e57c94aee6707383b82f7207a5a5e65c4c5c5b7 /include/ingen
parent8fc92b0e098133cd8b09acbae99c52b458a2868e (diff)
downloadingen-e75e4c88f91c6ca5320d61580404e48931b30345.tar.gz
ingen-e75e4c88f91c6ca5320d61580404e48931b30345.tar.bz2
ingen-e75e4c88f91c6ca5320d61580404e48931b30345.zip
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
Diffstat (limited to 'include/ingen')
-rw-r--r--include/ingen/shared/LV2URIMap.hpp6
1 files changed, 5 insertions, 1 deletions
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<uint16_t, uint32_t> EventToGlobal;
typedef std::map<uint32_t, uint16_t> GlobalToEvent;