From ec0b7f8db95b11bdb4d87a349be42148ff5d99f5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 27 Sep 2011 22:31:15 +0000 Subject: Add lilv_plugin_write_description and lilv_plugin_write_manifest_entry. Add -p and -m options to lv2info for writing data files. Define LILV_NS_OWL. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3498 a436a847-0d15-0410-975c-d299462d15a1 --- lilv/lilv.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'lilv') diff --git a/lilv/lilv.h b/lilv/lilv.h index bbf64de..fccec60 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -24,6 +24,7 @@ #include #include #include +#include #include "lv2/lv2plug.in/ns/lv2core/lv2.h" @@ -52,6 +53,7 @@ extern "C" { #define LILV_NS_FOAF "http://xmlns.com/foaf/0.1/" #define LILV_NS_LILV "http://drobilla.net/ns/lilv#" #define LILV_NS_LV2 "http://lv2plug.in/ns/lv2core#" +#define LILV_NS_OWL "http://www.w3.org/2002/07/owl#" #define LILV_NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define LILV_NS_RDFS "http://www.w3.org/2000/01/rdf-schema#" #define LILV_NS_XSD "http://www.w3.org/2001/XMLSchema#" @@ -899,6 +901,27 @@ LILV_API bool lilv_plugin_is_replaced(const LilvPlugin* plugin); +/** + Write the Turtle description of @c plugin to @c file. + + This function is particularly useful for porting plugins in conjunction with + an LV2 bridge such as NASPRO. +*/ +LILV_API +void +lilv_plugin_write_description(LilvWorld* world, + const LilvPlugin* plugin, + const LilvNode* base_uri, + FILE* plugin_file); + +LILV_API +void +lilv_plugin_write_manifest_entry(LilvWorld* world, + const LilvPlugin* plugin, + const LilvNode* base_uri, + FILE* manifest_file, + const char* plugin_file_path); + /** @} @name Port -- cgit v1.2.1