diff options
-rw-r--r-- | lv2/event/event-helpers.h | 5 | ||||
-rw-r--r-- | lv2/event/event.h | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lv2/event/event-helpers.h b/lv2/event/event-helpers.h index f514155..2f0fcf5 100644 --- a/lv2/event/event-helpers.h +++ b/lv2/event/event-helpers.h @@ -26,6 +26,7 @@ #include <stdlib.h> #include <string.h> +#include "lv2/core/attributes.h" #include "lv2/event/event.h" #ifdef __cplusplus @@ -34,6 +35,8 @@ extern "C" { # include <stdbool.h> #endif +LV2_DISABLE_DEPRECATION_WARNINGS + /** @file * Helper functions for the LV2 Event extension * <http://lv2plug.in/ns/ext/event>. @@ -257,6 +260,8 @@ lv2_event_write_event(LV2_Event_Iterator* iter, return true; } +LV2_RESTORE_WARNINGS + #ifdef __cplusplus } /* extern "C" */ #endif 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 |