1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
/* LV2 OSC Messages Extension
* Copyright (C) 2007 Dave Robillard <dave@drobilla.net>
*
* Modifed 2008 by Lars Luthman
*
* This header is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This header is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MAl 02110-1301 USA.
*/
#ifndef LV2_CONTEXTS_H
#define LV2_CONTEXTS_H
#define LV2_CONTEXT_URI "http://ll-plugins.nongnu.org/lv2/dev/contexts/1"
#define LV2_CONTEXT_MESSAGE "http://ll-plugins.nongnu.org/lv2/dev/contexts/1#MessageContext"
#define LV2_CONTEXTS_SET_OUTPUT_WRITTEN(flags, index) \
(flags)[(index) / 8] |= 1 << ((index) % 8)
#define LV2_CONTEXTS_UNSET_OUTPUT_WRITTEN(flags, index) \
(flags)[(index) / 8] &= ~(1 << ((index) % 8))
#include <lv2.h>
#include <stdbool.h>
typedef struct {
bool (*blocking_run)(LV2_Handle instance, uint8_t* outputs_written);
void (*connect_port)(LV2_Handle instance, uint32_t port, void* data);
} LV2_Blocking_Context;
typedef struct {
void* host_handle;
void (*request_run)(void* host_handle, const char* context_uri);
} LV2_Context_Feature;
#endif // LV2_CONTEXTS_H
|