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.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/private_types.h b/src/private_types.h
index 48bed0a..ff4580c 100644
--- a/src/private_types.h
+++ b/src/private_types.h
@@ -27,6 +27,7 @@ extern "C" {
#include <stddef.h>
#include <librdf.h>
#include <slv2/pluginlist.h>
+#include <slv2/categories.h>
/** Reference to a port on some plugin.
@@ -53,6 +54,7 @@ struct _Plugin {
librdf_uri* plugin_uri;
// char* bundle_url; // Bundle directory plugin was loaded from
char* binary_uri; // lv2:binary
+ SLV2Category category;
raptor_sequence* data_uris; // rdfs::seeAlso
raptor_sequence* ports;
librdf_storage* storage;
@@ -78,14 +80,26 @@ struct _InstanceImpl {
};
+struct _Category {
+ char* uri;
+ char* label;
+};
+
+SLV2Category slv2_category_new(const char* uri, const char* label);
+void slv2_category_free(SLV2Category category);
+
+SLV2Categories slv2_categories_new();
+void slv2_categories_free();
+
/** Model of LV2 (RDF) data loaded from bundles.
*/
struct _World {
- librdf_world* world;
- librdf_storage* storage;
- librdf_model* model;
- librdf_parser* parser;
- SLV2Plugins plugins;
+ librdf_world* world;
+ librdf_storage* storage;
+ librdf_model* model;
+ librdf_parser* parser;
+ SLV2Categories categories;
+ SLV2Plugins plugins;
};
/** Load all bundles found in \a search_path.