13#include "lv2/atom/atom.h"
14#include "lv2/buf-size/buf-size.h"
15#include "lv2/log/log.h"
16#include "lv2/midi/midi.h"
17#include "lv2/options/options.h"
18#include "lv2/parameters/parameters.h"
19#include "lv2/port-groups/port-groups.h"
20#include "lv2/port-props/port-props.h"
21#include "lv2/presets/presets.h"
22#include "lv2/resize-port/resize-port.h"
23#include "lv2/time/time.h"
24#include "lv2/units/units.h"
39 LilvNode *node_##n = nullptr; \
40 LilvNodePtr unode_##n;
45#define URID(n, u) LV2_URID urid_##n = 0;
51 uWorld.reset(lilv_world_new());
59 unode_##n.reset(lilv_new_uri(gWorld, u)); \
60 node_##n = unode_##n.get();
65 #define URID(n, u) urid_##n = Lookup_URI(gURIDMap, u);
78 size_t ndx = map.size();
79 for (
size_t i = 0; i < ndx; ++i)
80 if (strcmp(map[i].get(), uri) == 0)
Declare URI identifiers used in calls to the lv2 library and a mapping of them to integers.
std::unique_ptr< Type, Lilv_deleter< Type, f > > Lilv_ptr
Generate classes of smart pointers to lv2 resources.
std::unique_ptr< Character[], freer > MallocString
Lilv_ptr< LilvWorld, lilv_world_free > LilvWorldPtr
void FinalizeGWorld()
Call at end of session.
URIDLIST bool InitializeGWorld()
Call before any use of the constants defined in this file.
std::vector< MallocString<> > URIDMap
static LilvWorldPtr uWorld
LV2_URID Lookup_URI(URIDMap &map, const char *uri, bool add)
URIDMap gURIDMap
Declare the global map of positive integers to URIs.
void add(const T *src1, const T *src2, T *dst, int32_t n)