LMMS
Loading...
Searching...
No Matches
state.h
Go to the documentation of this file.
1/*
2 Copyright 2010-2016 David Robillard <http://drobilla.net>
3 Copyright 2010 Leonard Ritter <paniq@paniq.org>
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
27
28#ifndef LV2_STATE_H
29#define LV2_STATE_H
30
31#include "lv2.h"
32
33#include <stdbool.h>
34#include <stddef.h>
35#include <stdint.h>
36
37#define LV2_STATE_URI "http://lv2plug.in/ns/ext/state"
38#define LV2_STATE_PREFIX LV2_STATE_URI "#"
39
40#define LV2_STATE__State LV2_STATE_PREFIX "State"
41#define LV2_STATE__interface LV2_STATE_PREFIX "interface"
42#define LV2_STATE__loadDefaultState LV2_STATE_PREFIX "loadDefaultState"
43#define LV2_STATE__freePath LV2_STATE_PREFIX "freePath"
44#define LV2_STATE__makePath LV2_STATE_PREFIX "makePath"
45#define LV2_STATE__mapPath LV2_STATE_PREFIX "mapPath"
46#define LV2_STATE__state LV2_STATE_PREFIX "state"
47#define LV2_STATE__threadSafeRestore LV2_STATE_PREFIX "threadSafeRestore"
48#define LV2_STATE__StateChanged LV2_STATE_PREFIX "StateChanged"
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54typedef void* LV2_State_Handle;
58
102
113
148 LV2_State_Handle handle,
150 const void* value,
151 size_t size,
153 uint32_t flags);
154
173typedef const void* (*LV2_State_Retrieve_Function)(
174 LV2_State_Handle handle,
176 size_t* size,
177 uint32_t* type,
178 uint32_t* flags);
179
198typedef struct {
237 LV2_State_Handle handle,
238 uint32_t flags,
239 const LV2_Feature *const * features);
240
268 LV2_State_Handle handle,
269 uint32_t flags,
270 const LV2_Feature *const * features);
272
276typedef struct {
281
301 char* (*abstract_path)(LV2_State_Map_Path_Handle handle,
302 const char* absolute_path);
303
317 char* (*absolute_path)(LV2_State_Map_Path_Handle handle,
318 const char* abstract_path);
320
324typedef struct {
329
355 const char* path);
357
380
381#ifdef __cplusplus
382} /* extern "C" */
383#endif
384
385#endif /* LV2_STATE_H */
386
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
static PuglViewHint int value
Definition pugl.h:1708
void * LV2_Handle
Definition lv2.h:133
void * LV2_State_Make_Path_Handle
Opaque handle for state:makePath feature.
Definition state.h:57
void * LV2_State_Free_Path_Handle
Opaque handle for state:freePath feature.
Definition state.h:55
void * LV2_State_Handle
Opaque handle for state save/restore.
Definition state.h:54
LV2_State_Status(* LV2_State_Store_Function)(LV2_State_Handle handle, uint32_t key, const void *value, size_t size, uint32_t type, uint32_t flags)
Definition state.h:147
LV2_State_Flags
Definition state.h:65
void * LV2_State_Map_Path_Handle
Opaque handle for state:mapPath feature.
Definition state.h:56
const void *(* LV2_State_Retrieve_Function)(LV2_State_Handle handle, uint32_t key, size_t *size, uint32_t *type, uint32_t *flags)
Definition state.h:179
LV2_State_Status
Definition state.h:104
@ LV2_STATE_IS_NATIVE
Definition state.h:100
@ LV2_STATE_IS_PORTABLE
Definition state.h:89
@ LV2_STATE_IS_POD
Definition state.h:78
@ LV2_STATE_SUCCESS
Definition state.h:105
@ LV2_STATE_ERR_NO_FEATURE
Definition state.h:109
@ LV2_STATE_ERR_BAD_TYPE
Definition state.h:107
@ LV2_STATE_ERR_UNKNOWN
Definition state.h:106
@ LV2_STATE_ERR_NO_SPACE
Definition state.h:111
@ LV2_STATE_ERR_NO_PROPERTY
Definition state.h:110
@ LV2_STATE_ERR_BAD_FLAGS
Definition state.h:108
void * LV2_State_Make_Path_Handle
Definition lv2_state.h:49
void * LV2_State_Map_Path_Handle
Definition lv2_state.h:48
unsigned int uint32_t
Definition mid.cpp:100
Definition lv2.h:157
Definition state.h:361
void(* free_path)(LV2_State_Free_Path_Handle handle, char *path)
Definition state.h:377
LV2_State_Free_Path_Handle handle
Definition state.h:365
Definition state.h:198
LV2_State_Status(* restore)(LV2_Handle instance, LV2_State_Retrieve_Function retrieve, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const *features)
Definition state.h:266
LV2_State_Status(* save)(LV2_Handle instance, LV2_State_Store_Function store, LV2_State_Handle handle, uint32_t flags, const LV2_Feature *const *features)
Definition state.h:235
Definition state.h:324
char *(* path)(LV2_State_Make_Path_Handle handle, const char *path)
Definition state.h:354
LV2_State_Make_Path_Handle handle
Definition state.h:328
Definition state.h:276
LV2_State_Map_Path_Handle handle
Definition state.h:280
char *(* absolute_path)(LV2_State_Map_Path_Handle handle, const char *abstract_path)
Definition state.h:317
char *(* abstract_path)(LV2_State_Map_Path_Handle handle, const char *absolute_path)
Definition state.h:301
ZCONST char * key
Definition crypt.c:587
ulg size
Definition extract.c:2350
#define void
Definition unzip.h:396