summaryrefslogtreecommitdiffstats
path: root/ingen/shared/LV2URIMap.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-16 16:55:33 +0000
committerDavid Robillard <d@drobilla.net>2012-03-16 16:55:33 +0000
commit7126f005be3e49818dafe0d2666b6745e09f8aff (patch)
tree0347d8408335429dde623cdfa5bb1a3a3c9f8620 /ingen/shared/LV2URIMap.hpp
parent9da093217352daa1fb61a6f2daf5195640e286a7 (diff)
downloadingen-7126f005be3e49818dafe0d2666b6745e09f8aff.tar.gz
ingen-7126f005be3e49818dafe0d2666b6745e09f8aff.tar.bz2
ingen-7126f005be3e49818dafe0d2666b6745e09f8aff.zip
Remove ping() from interface, just use a get instead.
Add preliminary AtomWriter Interface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4068 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen/shared/LV2URIMap.hpp')
-rw-r--r--ingen/shared/LV2URIMap.hpp23
1 files changed, 8 insertions, 15 deletions
diff --git a/ingen/shared/LV2URIMap.hpp b/ingen/shared/LV2URIMap.hpp
index 70c47a12..01bbfb7d 100644
--- a/ingen/shared/LV2URIMap.hpp
+++ b/ingen/shared/LV2URIMap.hpp
@@ -55,30 +55,23 @@ public:
LV2_Feature _feature;
};
- class URIMapFeature : public Feature {
- public:
+ struct URIMapFeature : public Feature {
URIMapFeature(LV2URIMap* map);
-
- private:
- LV2_URI_Map_Feature _feature_data;
+ LV2_URI_Map_Feature uri_map;
};
- class URIDMapFeature : public Feature {
- public:
+ struct URIDMapFeature : public Feature {
URIDMapFeature(LV2URIMap* map, LV2_URID_Map* urid_map);
- LV2_URID map(const char* uri);
- private:
+ LV2_URID map(const char* uri);
static LV2_URID default_map(LV2_URID_Map_Handle h, const char* uri);
- LV2_URID_Map _feature_data;
+ LV2_URID_Map urid_map;
};
- class URIDUnmapFeature : public Feature {
- public:
+ struct URIDUnmapFeature : public Feature {
URIDUnmapFeature(LV2URIMap* map, LV2_URID_Unmap* urid_unmap);
- const char* unmap(const LV2_URID urid);
- private:
+ const char* unmap(const LV2_URID urid);
static const char* default_unmap(LV2_URID_Map_Handle h, LV2_URID uri);
- LV2_URID_Unmap _feature_data;
+ LV2_URID_Unmap urid_unmap;
};
SharedPtr<URIMapFeature> uri_map_feature() { return _uri_map_feature; }