diff options
author | David Robillard <d@drobilla.net> | 2011-03-07 05:34:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-07 05:34:19 +0000 |
commit | a7d7fae434dc32e6787dfe54d1c30e0bccc660bd (patch) | |
tree | 74c46b462b3541e05d58b0219531a6aef1bd946a /src/shared/LV2URIMap.hpp | |
parent | 3dddff18969b94438bc44b8d3d3c769b9ffc0a1b (diff) | |
download | ingen-a7d7fae434dc32e6787dfe54d1c30e0bccc660bd.tar.gz ingen-a7d7fae434dc32e6787dfe54d1c30e0bccc660bd.tar.bz2 ingen-a7d7fae434dc32e6787dfe54d1c30e0bccc660bd.zip |
Apply LV2 UI MIDI event fix from Lars Luthman (ticket #651) with minor changes.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3048 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared/LV2URIMap.hpp')
-rw-r--r-- | src/shared/LV2URIMap.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/LV2URIMap.hpp b/src/shared/LV2URIMap.hpp index fe98bbc3..20957a6a 100644 --- a/src/shared/LV2URIMap.hpp +++ b/src/shared/LV2URIMap.hpp @@ -19,6 +19,7 @@ #define INGEN_SHARED_LV2URIMAP_HPP #include <map> +#include <utility> #include <boost/utility.hpp> @@ -59,6 +60,9 @@ public: 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, |