api: ifdef TEMPLATE_SUPPORTS_MESSAGING

This commit is contained in:
Paolo Marrone 2025-06-16 15:05:17 +02:00
parent 4fbce1ac7b
commit 531868ef84

View File

@ -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;