LMMS
Loading...
Searching...
No Matches
lv2_urid.h
Go to the documentation of this file.
1/*
2 Copyright 2008-2012 David Robillard <http://drobilla.net>
3 Copyright 2011 Gabriel M. Beddingfield <gabrbedd@gmail.com>
4
5 Permission to use, copy, modify, and/or distribute this software for any
6 purpose with or without fee is hereby granted, provided that the above
7 copyright notice and this permission notice appear in all copies.
8
9 THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*/
17
22
23#ifndef LV2_URID_H
24#define LV2_URID_H
25
26#define LV2_URID_URI "http://lv2plug.in/ns/ext/urid"
27#define LV2_URID_PREFIX LV2_URID_URI "#"
28
29#define LV2_URID__map LV2_URID_PREFIX "map"
30#define LV2_URID__unmap LV2_URID_PREFIX "unmap"
31
32/* Legacy defines */
33#define LV2_URID_MAP_URI LV2_URID__map
34#define LV2_URID_UNMAP_URI LV2_URID__unmap
35
36#include <stdint.h>
37
41typedef void* LV2_URID_Map_Handle;
42
47
51typedef uint32_t LV2_URID;
52
56typedef struct _LV2_URID_Map {
64
87 const char* uri);
89
93typedef struct _LV2_URID_Unmap {
101
117 const char* (*unmap)(LV2_URID_Unmap_Handle handle,
118 LV2_URID urid);
120
121#endif /* LV2_URID_H */
void * LV2_URID_Map_Handle
Definition urid.h:48
uint32_t LV2_URID
Definition urid.h:58
void * LV2_URID_Unmap_Handle
Definition urid.h:53
static SordNode * uri(SordWorld *world, int num)
Definition sord_test.c:47
void * LV2_URID_Unmap_Handle
Definition lv2_urid.h:46
unsigned int uint32_t
Definition mid.cpp:100
Definition urid.h:63
LV2_URID_Map_Handle handle
Definition urid.h:70
LV2_URID(* map)(LV2_URID_Map_Handle handle, const char *uri)
Definition urid.h:93
Definition urid.h:100
LV2_URID_Unmap_Handle handle
Definition urid.h:107
Definition urid.h:69
Definition urid.h:105