summaryrefslogtreecommitdiffstats
path: root/src/private_types.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-21 21:21:49 +0000
committerDavid Robillard <d@drobilla.net>2007-04-21 21:21:49 +0000
commit2066b51c243763677dfdbc6a9db8bccc10bbfe36 (patch)
tree4312c8c4febf4b5bbcd67c1f886013568b9f5fd9 /src/private_types.h
parent4c50ab004bd3f7327ecf1b33f80473d8e3e6afeb (diff)
downloadlilv-2066b51c243763677dfdbc6a9db8bccc10bbfe36.tar.gz
lilv-2066b51c243763677dfdbc6a9db8bccc10bbfe36.tar.bz2
lilv-2066b51c243763677dfdbc6a9db8bccc10bbfe36.zip
Code cleanups.
git-svn-id: http://svn.drobilla.net/lad/slv2@470 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/private_types.h')
-rw-r--r--src/private_types.h127
1 files changed, 0 insertions, 127 deletions
diff --git a/src/private_types.h b/src/private_types.h
deleted file mode 100644
index baf5100..0000000
--- a/src/private_types.h
+++ /dev/null
@@ -1,127 +0,0 @@
-/* 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 <librdf.h>
-#include <slv2/pluginlist.h>
-#include <slv2/pluginclasses.h>
-
-
-/** Reference to a port on some plugin.
- */
-struct _Port {
- uint32_t index; ///< LV2 index
- char* symbol; ///< LV2 symbol
- //char* node_id; ///< RDF Node ID
-};
-
-
-SLV2Port slv2_port_new(uint32_t index, const char* symbol/*, const char* node_id*/);
-SLV2Port slv2_port_duplicate(SLV2Port port);
-void slv2_port_free(SLV2Port port);
-
-
-/** 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 {
- struct _World* world;
- librdf_uri* plugin_uri;
-// char* bundle_url; // Bundle directory plugin was loaded from
- char* binary_uri; // lv2:binary
- SLV2PluginClass plugin_class;
- raptor_sequence* data_uris; // rdfs::seeAlso
- raptor_sequence* ports;
- librdf_storage* storage;
- librdf_model* rdf;
-};
-
-SLV2Plugin slv2_plugin_new(SLV2World world, librdf_uri* uri, const char* binary_uri);
-void slv2_plugin_load(SLV2Plugin p);
-void slv2_plugin_free(SLV2Plugin plugin);
-
-
-/** Create a new, empty plugin list.
- *
- * Returned object must be freed with slv2_plugins_free.
- */
-SLV2Plugins
-slv2_plugins_new();
-
-
-/** Pimpl portion of SLV2Instance */
-struct _InstanceImpl {
- void* lib_handle;
-};
-
-
-struct _PluginClass {
- struct _World* world;
- char* parent_uri;
- char* uri;
- char* label;
-};
-
-SLV2PluginClass slv2_plugin_class_new(SLV2World world,
- const char* parent_uri, const char* uri, const char* label);
-void slv2_plugin_class_free(SLV2PluginClass class);
-
-SLV2PluginClasses slv2_plugin_classes_new();
-void slv2_plugin_classes_free();
-
-/** Model of LV2 (RDF) data loaded from bundles.
- */
-struct _World {
- librdf_world* world;
- librdf_storage* storage;
- librdf_model* model;
- librdf_parser* parser;
- SLV2PluginClasses plugin_classes;
- SLV2Plugins plugins;
-};
-
-/** Load all bundles found in \a search_path.
- *
- * \param search_path A colon-delimited list of directories. These directories
- * should contain LV2 bundle directories (ie the search path is a list of
- * parent directories of bundles, not a list of bundle directories).
- *
- * If \a search_path is NULL, \a world will be unmodified.
- * Use of this function is \b not recommended. Use \ref slv2_world_load_all.
- */
-void
-slv2_world_load_path(SLV2World world,
- const char* search_path);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __SLV2_PRIVATE_TYPES_H__ */
-