diff --git a/docs/api.rst b/docs/api.rst index 2f669d228..bff46e12b 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -603,13 +603,13 @@ See details at :ref:`owned_types_concept` .. c:type:: z_loaned_closure_zid_t .. c:type:: z_moved_closure_zid_t -.. c:type:: void (* z_closure_zid_callback_t)(z_loaned_zid_t * zid, void * arg); +.. c:type:: void (* z_closure_zid_callback_t)(const z_id_t * id, void * arg); Function pointer type for handling Zenoh ID routers response. Represents a callback function that is invoked when a zid is available for processing. Parameters: - - **zid** - Pointer to a :c:type:`z_loaned_zid_t` representing the zid to be processed. + - **zid** - Pointer to a :c:type:`z_id_t` representing the zid to be processed. - **arg** - A user-defined pointer to additional data that can be used during the processing of the zid. Functions diff --git a/include/zenoh-pico/api/primitives.h b/include/zenoh-pico/api/primitives.h index 9cce79d99..bbf9e25da 100644 --- a/include/zenoh-pico/api/primitives.h +++ b/include/zenoh-pico/api/primitives.h @@ -1107,7 +1107,7 @@ z_result_t z_closure_zid(z_owned_closure_zid_t *closure, z_closure_zid_callback_ * * Parameters: * closure: Pointer to the :c:type:`z_loaned_closure_zid_t` to call. - * zid: Pointer to the :c:type:`z_loaned_zid_t` to pass to the closure. + * zid: Pointer to the :c:type:`z_id_t` to pass to the closure. */ void z_closure_zid_call(const z_loaned_closure_zid_t *closure, const z_id_t *id);