aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/event
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-23 15:14:38 +0200
committerDavid Robillard <d@drobilla.net>2018-09-23 15:14:38 +0200
commitd77c88289edb4998f9e10b203e2757b5359a57e5 (patch)
tree7e302e1e2048662eb842d6df86eeae49c6a209bb /lv2/event
parente9f0796b44c85246ad829269e4fb1d229a6644a4 (diff)
downloadlv2-d77c88289edb4998f9e10b203e2757b5359a57e5.tar.xz
Aggressively deprecate event extension
Diffstat (limited to 'lv2/event')
-rw-r--r--lv2/event/event-helpers.h5
-rw-r--r--lv2/event/event.h11
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