LMMS
Loading...
Searching...
No Matches
lv2_programs.h
Go to the documentation of this file.
1/*
2 LV2 Programs Extension
3 Copyright 2012 Filipe Coelho <falktx@falktx.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_PROGRAMS_H
24#define LV2_PROGRAMS_H
25
26#include "lv2.h"
27#include "ui.h"
28
29#define LV2_PROGRAMS_URI "http://kxstudio.sf.net/ns/lv2ext/programs"
30#define LV2_PROGRAMS_PREFIX LV2_PROGRAMS_URI "#"
31
32#define LV2_PROGRAMS__Host LV2_PROGRAMS_PREFIX "Host"
33#define LV2_PROGRAMS__Interface LV2_PROGRAMS_PREFIX "Interface"
34#define LV2_PROGRAMS__UIInterface LV2_PROGRAMS_PREFIX "UIInterface"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40typedef void* LV2_Programs_Handle;
41
59
87 const LV2_Program_Descriptor *(*get_program)(LV2_Handle handle,
88 uint32_t index);
89
116 uint32_t bank,
117 uint32_t program);
118
120
142
169
170#ifdef __cplusplus
171} /* extern "C" */
172#endif
173
174#endif /* LV2_PROGRAMS_H */
void * LV2_Handle
Definition lv2.h:133
void * LV2UI_Handle
Definition ui.h:97
struct _LV2_Programs_Host LV2_Programs_Host
struct _LV2_Programs_Interface LV2_Programs_Interface
struct _LV2_Programs_UI_Interface LV2_Programs_UI_Interface
struct _LV2_Program_Descriptor LV2_Program_Descriptor
void * LV2_Programs_Handle
Definition lv2_programs.h:40
int int32_t
Definition mid.cpp:97
unsigned int uint32_t
Definition mid.cpp:100
Definition lv2_programs.h:42
uint32_t bank
Definition lv2_programs.h:48
uint32_t program
Definition lv2_programs.h:53
const char * name
Definition lv2_programs.h:56
Definition lv2_programs.h:146
LV2_Programs_Handle handle
Definition lv2_programs.h:150
void(* program_changed)(LV2_Programs_Handle handle, int32_t index)
Definition lv2_programs.h:165
Definition lv2_programs.h:67
void(* select_program)(LV2_Handle handle, uint32_t bank, uint32_t program)
Definition lv2_programs.h:115
Definition lv2_programs.h:128
void(* select_program)(LV2UI_Handle handle, uint32_t bank, uint32_t program)
Definition lv2_programs.h:137
#define void
Definition unzip.h:396