diff options
author | David Robillard <d@drobilla.net> | 2018-09-23 15:14:38 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-23 15:14:38 +0200 |
commit | d77c88289edb4998f9e10b203e2757b5359a57e5 (patch) | |
tree | 7e302e1e2048662eb842d6df86eeae49c6a209bb /lv2/event/event.h | |
parent | e9f0796b44c85246ad829269e4fb1d229a6644a4 (diff) | |
download | lv2-d77c88289edb4998f9e10b203e2757b5359a57e5.tar.xz |
Aggressively deprecate event extension
Diffstat (limited to 'lv2/event/event.h')
-rw-r--r-- | lv2/event/event.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lv2/event/event.h b/lv2/event/event.h index 8b850d1..264f257 100644 --- a/lv2/event/event.h +++ b/lv2/event/event.h @@ -45,15 +45,20 @@ #include <stdint.h> +#include "lv2/core/attributes.h" + #ifdef __cplusplus extern "C" { #endif +LV2_DISABLE_DEPRECATION_WARNINGS + /** The best Pulses Per Quarter Note for tempo-based uint32_t timestamps. Equal to 2^12 * 5 * 7 * 9 * 11 * 13 * 17, which is evenly divisble by all integers from 1 through 18 inclusive, and powers of 2 up to 2^12. */ +LV2_DEPRECATED static const uint32_t LV2_EVENT_PPQN = 3136573440U; /** @@ -69,6 +74,7 @@ static const uint32_t LV2_EVENT_PPQN = 3136573440U; memcpy(ev_copy, ev, sizeof(LV2_Event) + ev->size); (or equivalent) */ +LV2_DEPRECATED typedef struct { /** The frames portion of timestamp. The units used here can optionally be @@ -129,6 +135,7 @@ typedef struct { | | | | | | | | | | | | | | | | | | | | | | | | | |FRAMES |SUBFRMS|TYP|LEN|DATA..DATA..PAD|FRAMES | ... */ +LV2_DEPRECATED typedef struct { /** The contents of the event buffer. This may or may not reside in the @@ -212,6 +219,7 @@ typedef struct { /** Opaque pointer to host data. */ +LV2_DEPRECATED typedef void* LV2_Event_Callback_Data; @@ -223,6 +231,7 @@ typedef void* LV2_Event_Callback_Data; and data pointed to an instance of this struct. Note this feature is not mandatory to support the event extension. */ +LV2_DEPRECATED typedef struct { /** Opaque pointer to host data. @@ -281,6 +290,8 @@ typedef struct { LV2_Event* event); } LV2_Event_Feature; +LV2_RESTORE_WARNINGS + #ifdef __cplusplus } /* extern "C" */ #endif |