summaryrefslogtreecommitdiffstats
path: root/src/private_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/private_types.h')
-rw-r--r--src/private_types.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/private_types.h b/src/private_types.h
new file mode 100644
index 0000000..0d755f8
--- /dev/null
+++ b/src/private_types.h
@@ -0,0 +1,67 @@
+/* SLV2
+ * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
+ *
+ * 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 <stdbool.h>
+#include <stddef.h>
+#include <raptor.h>
+#include <slv2/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 {
+ char* plugin_uri;
+ char* bundle_url; // Bundle directory plugin was loaded from
+ raptor_sequence* data_uris; // rdfs::seeAlso
+ char* lib_uri; // lv2:binary
+};
+
+
+/** Pimpl portion of SLV2Instance */
+struct _InstanceImpl {
+ void* lib_handle;
+};
+
+
+/** List of references to plugins available for loading (private type) */
+struct _PluginList {
+ size_t num_plugins;
+ struct _Plugin** plugins;
+};
+
+
+/** An ordered, indexable collection of strings. */
+//typedef raptor_sequence* SLV2Strings;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __SLV2_PRIVATE_TYPES_H__ */
+