23 #include <lv2/lv2plug.in/ns/ext/urid/urid.h> 28 typedef uint32_t (*
MapFunc)(
const char* symbol);
31 typedef const char* (*UnmapFunc)(uint32_t id);
39 template<
bool Required = true>
42 template<
class Derived>
43 struct I : Extension<Required>
45 I() : p_map(0), p_unmap(0) { }
57 handle_map_feature (
void* instance,
void* data)
59 Derived* d =
reinterpret_cast<Derived*
>(instance);
62 mixin->p_map =
reinterpret_cast<LV2_URID_Map*
>(data);
68 handle_unmap_feature (
void* instance,
void* data)
70 Derived* d =
reinterpret_cast<Derived*
> (instance);
73 mixin->p_unmap =
reinterpret_cast<LV2_URID_Unmap*
>(data);
82 std::clog <<
" [URID] Validation " 83 << (this->m_ok ?
"succeeded" :
"failed")
106 return p_unmap->unmap(p_unmap->handle, urid);
133 return p_map->map(p_map->handle, uri);
146 LV2_URID_Unmap *p_unmap;
const char * unmap(LV2_URID urid)
Definition: urid.hpp:103
LV2_URID_Unmap * get_urid_unmap() const
Definition: urid.hpp:141
Definition: feature.hpp:34
LV2_URID map(const char *uri)
Definition: urid.hpp:130
LV2_URID_Map * get_urid_map() const
Definition: urid.hpp:138
uint32_t(* MapFunc)(const char *symbol)
Definition: urid.hpp:28
map< string, FeatureHandler > FeatureHandlerMap
Definition: feature.hpp:57