aboutsummaryrefslogtreecommitdiffstats
path: root/src/lv2_evbuf.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-28 00:15:20 +0000
committerDavid Robillard <d@drobilla.net>2012-02-28 00:15:20 +0000
commit574cb313ce5c2c60976fd243e212529ce86b566b (patch)
tree40935728239585fa007187073124a25ad307aee5 /src/lv2_evbuf.h
parentc921a5bec946005c30b010d160b866c0751b5f8f (diff)
downloadjalv-574cb313ce5c2c60976fd243e212529ce86b566b.tar.gz
jalv-574cb313ce5c2c60976fd243e212529ce86b566b.tar.bz2
jalv-574cb313ce5c2c60976fd243e212529ce86b566b.zip
Update LV2_Evbuf (matches that used in current ardour 3.0).
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4003 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/lv2_evbuf.h')
-rw-r--r--src/lv2_evbuf.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lv2_evbuf.h b/src/lv2_evbuf.h
index e637b9e..b2caa12 100644
--- a/src/lv2_evbuf.h
+++ b/src/lv2_evbuf.h
@@ -54,9 +54,11 @@ typedef struct {
/**
Allocate a new, empty event buffer.
+ The URID for atom:Sequence must be passed for atom_Sequence if type is
+ LV2_EVBUF_ATOM.
*/
LV2_Evbuf*
-lv2_evbuf_new(uint32_t capacity, LV2_Evbuf_Type type);
+lv2_evbuf_new(uint32_t capacity, LV2_Evbuf_Type type, uint32_t atom_type);
/**
Free an event buffer allocated with lv2_evbuf_new.
@@ -65,6 +67,15 @@ void
lv2_evbuf_free(LV2_Evbuf* evbuf);
/**
+ Change the type of an existing event buffer. This will clear and reset the
+ buffer, it is not possible to change the type and preserve the buffer
+ contents since the formats differ. The URID for atom:Sequence must be
+ passed for atom_Sequence if type is LV2_EVBUF_ATOM.
+*/
+void
+lv2_evbuf_set_type(LV2_Evbuf* evbuf, LV2_Evbuf_Type type, uint32_t atom_type);
+
+/**
Clear and initialize an existing event buffer.
The contents of buf are ignored entirely and overwritten, except capacity
which is unmodified.