From f365b8c05289c7f2e5b0fdca12a39c533d2864aa Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Wed, 10 Jan 2024 14:44:34 +0100 Subject: [PATCH] feat: add dummy function when feature not present --- src/session/subscription.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/session/subscription.c b/src/session/subscription.c index cc9c19a10..40c07d42b 100644 --- a/src/session/subscription.c +++ b/src/session/subscription.c @@ -235,4 +235,14 @@ void _z_flush_subscriptions(_z_session_t *zn) { _z_mutex_unlock(&zn->_mutex_inner); #endif // Z_FEATURE_MULTI_THREAD == 1 } -#endif \ No newline at end of file +#else // Z_FEATURE_SUBSCRIPTION == 0 + +void _z_trigger_local_subscriptions(_z_session_t *zn, const _z_keyexpr_t keyexpr, const uint8_t *payload, + _z_zint_t payload_len) { + _ZP_UNUSED(zn); + _ZP_UNUSED(keyexpr); + _ZP_UNUSED(payload); + _ZP_UNUSED(payload_len); +} + +#endif // Z_FEATURE_SUBSCRIPTION == 1 \ No newline at end of file