From 09e5c017b096bc84bbbc0b273baffd221144213a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 Apr 2007 21:25:38 +0000 Subject: Preliminary categories support. git-svn-id: http://svn.drobilla.net/lad/slv2@465 a436a847-0d15-0410-975c-d299462d15a1 --- src/private_types.h | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'src/private_types.h') 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 #include #include +#include /** 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. -- cgit v1.2.1