Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
uris.h
1// SPDX-FileCopyrightText: © 2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-FileCopyrightText: 2014-2015 David Robillard <d@drobilla.net>
3// SPDX-License-Identifier: ISC
4
5#ifndef TEST_INSTRUMENT_URIS_H
6#define TEST_INSTRUMENT_URIS_H
7
8#include <lv2/atom/atom.h>
9#include <lv2/log/log.h>
10#include <lv2/midi/midi.h>
11#include <lv2/patch/patch.h>
12#include <lv2/state/state.h>
13
14#define TEST_INSTRUMENT_URI "https://lv2.zrythm.org/test-instrument"
15
16typedef struct
17{
18 LV2_URID atom_Path;
19 LV2_URID atom_Resource;
20 LV2_URID atom_Sequence;
21 LV2_URID atom_URID;
22 LV2_URID atom_eventTransfer;
23 LV2_URID midi_Event;
24 LV2_URID patch_Set;
25 LV2_URID patch_property;
26 LV2_URID patch_value;
28
29static inline void
30map_fifths_uris (LV2_URID_Map * map, FifthsURIs * uris)
31{
32 uris->atom_Path = map->map (map->handle, LV2_ATOM__Path);
33 uris->atom_Resource = map->map (map->handle, LV2_ATOM__Resource);
34 uris->atom_Sequence = map->map (map->handle, LV2_ATOM__Sequence);
35 uris->atom_URID = map->map (map->handle, LV2_ATOM__URID);
36 uris->atom_eventTransfer = map->map (map->handle, LV2_ATOM__eventTransfer);
37 uris->midi_Event = map->map (map->handle, LV2_MIDI__MidiEvent);
38 uris->patch_Set = map->map (map->handle, LV2_PATCH__Set);
39 uris->patch_property = map->map (map->handle, LV2_PATCH__property);
40 uris->patch_value = map->map (map->handle, LV2_PATCH__value);
41}
42
43#endif /* TEST_INSTRUMENT_URIS_H */