summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:56:50 +0100
commitfa2fd348491cddef0a356fb13a8dab0d2e91d5fb (patch)
tree3885d48c5f648c5e884133993d5056862e3babd0 /ingen
parent001b459dfaf5d2ed53e4f7a5daea2a408aba1a2d (diff)
downloadingen-fa2fd348491cddef0a356fb13a8dab0d2e91d5fb.tar.gz
ingen-fa2fd348491cddef0a356fb13a8dab0d2e91d5fb.tar.bz2
ingen-fa2fd348491cddef0a356fb13a8dab0d2e91d5fb.zip
Replace glib quarks
Diffstat (limited to 'ingen')
-rw-r--r--ingen/URIMap.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/ingen/URIMap.hpp b/ingen/URIMap.hpp
index 6ad8c684..fc402c2c 100644
--- a/ingen/URIMap.hpp
+++ b/ingen/URIMap.hpp
@@ -18,8 +18,11 @@
#define INGEN_URIMAP_HPP
#include <cstdint>
+#include <mutex>
#include <string>
+#include <unordered_map>
#include <utility>
+#include <vector>
#include "ingen/LV2Features.hpp"
#include "ingen/ingen.h"
@@ -65,7 +68,7 @@ public:
struct URIDMapFeature : public Feature {
URIDMapFeature(URIMap* map, LV2_URID_Map* impl, Log& log);
LV2_URID map(const char* uri);
- static LV2_URID default_map(LV2_URID_Map_Handle h, const char* uri);
+ static LV2_URID default_map(LV2_URID_Map_Handle h, const char* c_uri);
LV2_URID_Map urid_map;
Log& log;
};
@@ -81,8 +84,15 @@ public:
SPtr<URIDUnmapFeature> urid_unmap_feature() { return _urid_unmap_feature; }
private:
+ friend class URIDMapFeature;
+ friend class URIDUnMapFeature;
+
SPtr<URIDMapFeature> _urid_map_feature;
SPtr<URIDUnmapFeature> _urid_unmap_feature;
+
+ std::mutex _mutex;
+ std::unordered_map<std::string, LV2_URID> _map;
+ std::vector<std::string> _unmap;
};
} // namespace Ingen