diff options
author | David Robillard <d@drobilla.net> | 2008-05-01 20:54:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-01 20:54:08 +0000 |
commit | 523543470188a91e487a1a11963004d311be6023 (patch) | |
tree | f26e4ee811a0642e4819eb771178e2d7c68513ab /hosts | |
parent | e1f86edd9d134471d64b6804989061801c40f3e5 (diff) | |
download | lilv-523543470188a91e487a1a11963004d311be6023.tar.gz lilv-523543470188a91e487a1a11963004d311be6023.tar.bz2 lilv-523543470188a91e487a1a11963004d311be6023.zip |
Apply event reference counting (stubs) patch from larsl.
git-svn-id: http://svn.drobilla.net/lad/slv2@1189 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/lv2_jack_host.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/hosts/lv2_jack_host.c b/hosts/lv2_jack_host.c index d776c34..8044cbf 100644 --- a/hosts/lv2_jack_host.c +++ b/hosts/lv2_jack_host.c @@ -84,7 +84,19 @@ uri_to_id(LV2_URI_Map_Callback_Data callback_data, static LV2_URI_Map_Feature uri_map = { NULL, &uri_to_id }; static const LV2_Feature uri_map_feature = { "http://lv2plug.in/ns/ext/uri-map", &uri_map }; -const LV2_Feature* features[2] = { &uri_map_feature, NULL }; + +/** We don't support type 0 events, so the ref and unref functions just point + to the same empty function. */ +uint32_t event_ref_func(LV2_Event_Callback_Data callback_data, + LV2_Event* event) { + +} + +static LV2_Event_Feature event_ref = { NULL, &event_ref_func, &event_ref_func }; +static const LV2_Feature event_ref_feature = { "http://lv2plug.in/ns/ext/event", + &event_ref }; + +const LV2_Feature* features[3] = { &uri_map_feature, &event_ref_feature, NULL }; void die(const char* msg); void create_port(struct JackHost* host, uint32_t port_index); |