From 531868ef847030124587825a1ec081233d6280bf Mon Sep 17 00:00:00 2001 From: Paolo Marrone Date: Mon, 16 Jun 2025 15:05:17 +0200 Subject: [PATCH] api: ifdef TEMPLATE_SUPPORTS_MESSAGING --- templates/api/src/plugin_api.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/api/src/plugin_api.h b/templates/api/src/plugin_api.h index f72bf24..4d638e1 100644 --- a/templates/api/src/plugin_api.h +++ b/templates/api/src/plugin_api.h @@ -27,7 +27,9 @@ typedef struct { const char * (*get_bindir)(void *handle); const char * (*get_datadir)(void *handle); {{?it.product.messaging}} +#ifdef TEMPLATE_SUPPORTS_MESSAGING char (*send_to_ui)(void *handle, const void *data, size_t bytes); +#endif {{?}} } plugin_callbacks; @@ -54,7 +56,9 @@ typedef struct { void (*set_parameter_end)(void *handle, size_t index, float value); {{?}} {{?it.product.messaging}} +#ifdef TEMPLATE_SUPPORTS_MESSAGING char (*send_to_dsp)(void *handle, const void *data, size_t bytes); +#endif {{?}} } plugin_ui_callbacks;