Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Nov 23, 2023
1 parent 968c62e commit f642dd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ Functions

.. autocfunction:: zenoh_commons.h::ze_declare_querying_subscriber
.. autocfunction:: zenoh_commons.h::ze_undeclare_querying_subscriber
.. autocfunction:: zenoh_commons.h::ze_querying_subscriber_get
.. autocfunction:: zenoh_commons.h::ze_querying_subscriber_check
.. autocfunction:: zenoh_commons.h::ze_querying_subscriber_null
.. autocfunction:: zenoh_commons.h::ze_querying_subscriber_options_default
4 changes: 4 additions & 0 deletions include/zenoh_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -2094,6 +2094,10 @@ ZENOHC_API struct ze_publication_cache_options_t ze_publication_cache_options_de
* Returns ``true`` if `sub` is valid.
*/
ZENOHC_API bool ze_querying_subscriber_check(const struct ze_owned_querying_subscriber_t *sub);
/**
* Make a :c:type:`ze_owned_querying_subscriber_t` to perform an additional query on a specified selector.
* The queried samples will be merged with the received publications and made available in the subscriber callback.
*/
ZENOHC_API
int8_t ze_querying_subscriber_get(struct ze_querying_subscriber_t sub,
struct z_keyexpr_t selector,
Expand Down
2 changes: 2 additions & 0 deletions src/querying_subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ pub unsafe extern "C" fn ze_declare_querying_subscriber(
}
}

/// Make a :c:type:`ze_owned_querying_subscriber_t` to perform an additional query on a specified selector.
/// The queried samples will be merged with the received publications and made available in the subscriber callback.
#[allow(clippy::missing_safety_doc)]
#[no_mangle]
pub unsafe extern "C" fn ze_querying_subscriber_get(
Expand Down

0 comments on commit f642dd5

Please sign in to comment.