From 74e86ccf0abe6d153aa8e5b9762b6758f454adcc Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Thu, 14 Nov 2024 14:07:37 +0100 Subject: [PATCH] feat: set batching api as unstable --- include/zenoh-pico/api/primitives.h | 2 +- src/api/api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/zenoh-pico/api/primitives.h b/include/zenoh-pico/api/primitives.h index ce9f733bc..98dd6a221 100644 --- a/include/zenoh-pico/api/primitives.h +++ b/include/zenoh-pico/api/primitives.h @@ -2060,7 +2060,7 @@ z_result_t z_declare_background_subscriber(const z_loaned_session_t *zs, const z const z_loaned_keyexpr_t *z_subscriber_keyexpr(const z_loaned_subscriber_t *subscriber); #endif -#if Z_FEATURE_BATCHING == 1 +#if Z_FEATURE_UNSTABLE_API == 1 && Z_FEATURE_BATCHING == 1 /** * Activate the batching mechanism. * Any message that would have been sent on the network by a subsequent api call (e.g z_put, z_get) diff --git a/src/api/api.c b/src/api/api.c index 4e6eadc53..acb4a3483 100644 --- a/src/api/api.c +++ b/src/api/api.c @@ -1420,7 +1420,7 @@ const z_loaned_keyexpr_t *z_subscriber_keyexpr(const z_loaned_subscriber_t *sub) } #endif -#if Z_FEATURE_BATCHING == 1 +#if Z_FEATURE_UNSTABLE_API == 1 && Z_FEATURE_BATCHING == 1 z_result_t zp_batch_start(const z_loaned_session_t *zs) { if (_Z_RC_IS_NULL(zs)) { return _Z_ERR_SESSION_CLOSED;