Skip to content

Commit

Permalink
Fix modular build
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Nov 5, 2024
1 parent ed32157 commit f8e66fa
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions src/session/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ void _z_flush_subscriptions(_z_session_t *zn) {
}
#else // Z_FEATURE_SUBSCRIPTION == 0

void _z_trigger_subscriptions(_z_session_t *zn, const _z_keyexpr_t keyexpr, const _z_bytes_t payload,
_z_encoding_t *encoding, const _z_n_qos_t qos, const _z_timestamp_t *timestamp,
const _z_bytes_t attachment, z_reliability_t reliability) {
z_result_t _z_trigger_subscriptions_put(_z_session_t *zn, const _z_keyexpr_t keyexpr, const _z_bytes_t payload,
_z_encoding_t *encoding, const _z_timestamp_t *timestamp, const _z_n_qos_t qos,
const _z_bytes_t attachment, z_reliability_t reliability) {
_ZP_UNUSED(zn);
_ZP_UNUSED(keyexpr);
_ZP_UNUSED(payload);
Expand All @@ -246,6 +246,39 @@ void _z_trigger_subscriptions(_z_session_t *zn, const _z_keyexpr_t keyexpr, cons
_ZP_UNUSED(timestamp);
_ZP_UNUSED(attachment);
_ZP_UNUSED(reliability);

return _Z_RES_OK;
}

z_result_t _z_trigger_subscriptions_del(_z_session_t *zn, const _z_keyexpr_t keyexpr, const _z_timestamp_t *timestamp,
const _z_n_qos_t qos, const _z_bytes_t attachment,
z_reliability_t reliability) {
_ZP_UNUSED(zn);
_ZP_UNUSED(keyexpr);
_ZP_UNUSED(qos);
_ZP_UNUSED(timestamp);
_ZP_UNUSED(attachment);
_ZP_UNUSED(reliability);

return _Z_RES_OK;
}

z_result_t _z_trigger_liveliness_subscriptions_declare(_z_session_t *zn, const _z_keyexpr_t keyexpr,
const _z_timestamp_t *timestamp) {
_ZP_UNUSED(zn);
_ZP_UNUSED(keyexpr);
_ZP_UNUSED(timestamp);

return _Z_RES_OK;
}

z_result_t _z_trigger_liveliness_subscriptions_undeclare(_z_session_t *zn, const _z_keyexpr_t keyexpr,
const _z_timestamp_t *timestamp) {
_ZP_UNUSED(zn);
_ZP_UNUSED(keyexpr);
_ZP_UNUSED(timestamp);

return _Z_RES_OK;
}

#endif // Z_FEATURE_SUBSCRIPTION == 1

0 comments on commit f8e66fa

Please sign in to comment.