Skip to content

Commit

Permalink
feat: add dummy function when feature not present
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jan 10, 2024
1 parent 896b7dd commit f365b8c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/session/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
#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

0 comments on commit f365b8c

Please sign in to comment.