Add size to clap_event_header
@@ -13,11 +13,12 @@ extern "C" {
#pragma pack(push, CLAP_ALIGN)
// event header
-// must be the first field of the event
+// must be the first attribute of the event
typedef struct clap_event_header {
- alignas(4) uint32_t time;
- alignas(2) uint16_t space_id;
- alignas(2) uint16_t event_id;
+ alignas(4) uint32_t size; // event size including this header, eg: sizeof (clap_event_note)
+ alignas(4) uint32_t time; // time at which the event happens
+ alignas(2) uint16_t space_id; // event space, see clap_host_event_registry
+ alignas(2) uint16_t type; // event type
alignas(2) uint16_t flags; // see clap_event_flags
} clap_event_header_t;
