diff options
author | David Robillard <d@drobilla.net> | 2012-03-19 20:16:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-19 20:16:46 +0000 |
commit | 254b434f0a79fea54bd963e8ff2e845a5b0cd3a6 (patch) | |
tree | ddf849fc5b64d1096846c28c1f1a742f54c3adff /ingen/shared/LV2URIMap.hpp | |
parent | bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9 (diff) | |
download | ingen-254b434f0a79fea54bd963e8ff2e845a5b0cd3a6.tar.gz ingen-254b434f0a79fea54bd963e8ff2e845a5b0cd3a6.tar.bz2 ingen-254b434f0a79fea54bd963e8ff2e845a5b0cd3a6.zip |
Partially functioning communication between Ingen LV2 plugin and UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4078 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen/shared/LV2URIMap.hpp')
-rw-r--r-- | ingen/shared/LV2URIMap.hpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ingen/shared/LV2URIMap.hpp b/ingen/shared/LV2URIMap.hpp index 01bbfb7d..5375ed51 100644 --- a/ingen/shared/LV2URIMap.hpp +++ b/ingen/shared/LV2URIMap.hpp @@ -24,7 +24,6 @@ #include <boost/utility.hpp> #include "ingen/shared/LV2Features.hpp" -#include "lv2/lv2plug.in/ns/ext/uri-map/uri-map.h" #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "raul/URI.hpp" @@ -55,11 +54,6 @@ public: LV2_Feature _feature; }; - struct URIMapFeature : public Feature { - URIMapFeature(LV2URIMap* map); - LV2_URI_Map_Feature uri_map; - }; - struct URIDMapFeature : public Feature { URIDMapFeature(LV2URIMap* map, LV2_URID_Map* urid_map); LV2_URID map(const char* uri); @@ -74,32 +68,12 @@ public: LV2_URID_Unmap urid_unmap; }; - SharedPtr<URIMapFeature> uri_map_feature() { return _uri_map_feature; } SharedPtr<URIDMapFeature> urid_map_feature() { return _urid_map_feature; } SharedPtr<URIDUnmapFeature> urid_unmap_feature() { return _urid_unmap_feature; } - virtual uint32_t uri_to_id(const char* map, const char* uri); - virtual const char* id_to_uri(const char* map, uint32_t id); - - std::pair<bool, uint32_t> event_to_global(uint16_t event_id) const; - std::pair<bool, uint16_t> global_to_event(uint32_t global_id) const; - private: - static uint32_t uri_map_uri_to_id(LV2_URI_Map_Callback_Data callback_data, - const char* map, - const char* uri); - - static LV2_URID urid_map(LV2_URID_Map_Handle handle, const char* uri); - 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; - - SharedPtr<URIMapFeature> _uri_map_feature; SharedPtr<URIDMapFeature> _urid_map_feature; SharedPtr<URIDUnmapFeature> _urid_unmap_feature; - EventToGlobal _event_to_global; - GlobalToEvent _global_to_event; }; } // namespace Shared |