diff options
Diffstat (limited to 'slv2/private_types.h')
-rw-r--r-- | slv2/private_types.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/slv2/private_types.h b/slv2/private_types.h new file mode 100644 index 0000000..849e5a2 --- /dev/null +++ b/slv2/private_types.h @@ -0,0 +1,65 @@ +/* LibSLV2 + * Copyright (C) 2006 Dave Robillard <drobilla@connect.carleton.ca> + * + * This library 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 library 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, MA 02110-1301 USA. + */ + +#ifndef __SLV2_PRIVATE_TYPES_H__ +#define __SLV2_PRIVATE_TYPES_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stddef.h> +#include <lv2.h> + + +/** Record of an installed/available plugin. + * + * A simple reference to a plugin somewhere on the system. This just holds + * paths of relevant files, the actual data therein isn't loaded into memory. + */ +struct _Plugin { + unsigned char* plugin_uri; + unsigned char* bundle_url; // Bundle directory plugin was loaded from + unsigned char* data_url; // rdfs::seeAlso + unsigned char* lib_url; // lv2:binary +}; + + +/** Instance of a plugin (private type) */ +struct _Instance { + // FIXME: copy plugin here for convenience? + //struct LV2Plugin* plugin; + const LV2_Descriptor* descriptor; + void* lib_handle; + LV2_Handle lv2_handle; +}; + + +/** List of references to plugins available for loading (private type) */ +struct _PluginList { + size_t num_plugins; + struct _Plugin** plugins; +}; + + +#ifdef __cplusplus +} +#endif + +#endif /* __SLV2_PRIVATE_TYPES_H__ */ + |