summaryrefslogtreecommitdiffstats
path: root/src/slv2_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-25 05:01:28 +0000
committerDavid Robillard <d@drobilla.net>2007-07-25 05:01:28 +0000
commit9f43f23510ba2acd8e03f2822d87c74a8774b9d6 (patch)
treefc29ca27803d92e78f3cfdf9838896351c21c052 /src/slv2_internal.h
parent092c9d03af043af4bad2d2402ee9c75d68dca67a (diff)
downloadlilv-9f43f23510ba2acd8e03f2822d87c74a8774b9d6.tar.gz
lilv-9f43f23510ba2acd8e03f2822d87c74a8774b9d6.tar.bz2
lilv-9f43f23510ba2acd8e03f2822d87c74a8774b9d6.zip
Start work on lock stuff, for threadsafe SLV2 and using SLV2 with apps that use Redland themselves.
git-svn-id: http://svn.drobilla.net/lad/slv2@621 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r--src/slv2_internal.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h
index 2694b5d..4e8c8da 100644
--- a/src/slv2_internal.h
+++ b/src/slv2_internal.h
@@ -133,7 +133,6 @@ void slv2_plugin_classes_free();
/* ********* World ********* */
-
/** Model of LV2 (RDF) data loaded from bundles.
*/
struct _SLV2World {
@@ -145,8 +144,19 @@ struct _SLV2World {
SLV2Plugins plugins;
librdf_node* lv2_plugin_node;
librdf_node* rdf_a_node;
+
+ void (*rdf_lock)(void*);
+ void (*rdf_unlock)(void*);
+ void* rdf_lock_data;
+ int rdf_lock_count;
};
+void
+slv2_world_lock_if_necessary(SLV2World world);
+
+void
+slv2_world_unlock_if_necessary(SLV2World world);
+
/** Load all bundles found in \a search_path.
*
* \param search_path A colon-delimited list of directories. These directories