Skip to content

Commit

Permalink
renamed z_liveliness* function to make it accord to correct ones in z…
Browse files Browse the repository at this point in the history
…enoh-pico
  • Loading branch information
milyin committed Nov 18, 2024
1 parent 4b759d4 commit 37e2a38
Show file tree
Hide file tree
Showing 8 changed files with 586 additions and 679 deletions.
24 changes: 12 additions & 12 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -816,24 +816,24 @@ Types
-----

.. doxygenstruct:: zc_owned_liveliness_token_t
.. doxygenstruct:: zc_liveliness_declaration_options_t
.. doxygenstruct:: zc_liveliness_get_options_t
.. doxygenstruct:: zc_liveliness_subscriber_options_t
.. doxygenstruct:: z_liveliness_token_options_t
.. doxygenstruct:: z_liveliness_get_options_t
.. doxygenstruct:: z_liveliness_subscriber_options_t

Functions
---------
.. doxygenfunction:: zc_liveliness_declare_subscriber
.. doxygenfunction:: z_liveliness_declare_subscriber
.. doxygenfunction:: zc_liveliness_declare_background_subscriber
.. doxygenfunction:: zc_liveliness_get
.. doxygenfunction:: z_liveliness_get

.. doxygenfunction:: zc_liveliness_declare_token
.. doxygenfunction:: zc_liveliness_undeclare_token
.. doxygenfunction:: zc_liveliness_token_loan
.. doxygenfunction:: zc_liveliness_token_drop
.. doxygenfunction:: z_liveliness_declare_token
.. doxygenfunction:: z_liveliness_undeclare_token
.. doxygenfunction:: z_liveliness_token_loan
.. doxygenfunction:: z_liveliness_token_drop

.. doxygenfunction:: zc_liveliness_subscriber_options_default
.. doxygenfunction:: zc_liveliness_declaration_options_default
.. doxygenfunction:: zc_liveliness_get_options_default
.. doxygenfunction:: z_liveliness_subscriber_options_default
.. doxygenfunction:: z_liveliness_token_options_default
.. doxygenfunction:: z_liveliness_get_options_default

Publication Cache
=================
Expand Down
2 changes: 1 addition & 1 deletion examples/z_get_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int main(int argc, char** argv) {
z_owned_fifo_handler_reply_t handler;
z_owned_closure_reply_t closure;
z_fifo_channel_reply_new(&closure, &handler, 16);
zc_liveliness_get(z_loan(s), z_loan(keyexpr), z_move(closure), NULL);
z_liveliness_get(z_loan(s), z_loan(keyexpr), z_move(closure), NULL);
z_owned_reply_t reply;
for (z_result_t res = z_recv(z_loan(handler), &reply); res == Z_OK; res = z_recv(z_loan(handler), &reply)) {
if (z_reply_is_ok(z_loan(reply))) {
Expand Down
2 changes: 1 addition & 1 deletion examples/z_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int argc, char** argv) {

printf("Declaring liveliness token '%s'...\n", args.keyexpr);
zc_owned_liveliness_token_t token;
if (zc_liveliness_declare_token(z_loan(s), &token, z_loan(keyexpr), NULL) < 0) {
if (z_liveliness_declare_token(z_loan(s), &token, z_loan(keyexpr), NULL) < 0) {
printf("Unable to create liveliness token!\n");
exit(-1);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/z_sub_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main(int argc, char** argv) {
z_owned_closure_sample_t callback;
z_closure(&callback, data_handler, NULL, NULL);
z_owned_subscriber_t sub;
if (zc_liveliness_declare_subscriber(z_loan(s), &sub, z_loan(ke), z_move(callback), NULL) < 0) {
if (z_liveliness_declare_subscriber(z_loan(s), &sub, z_loan(ke), z_move(callback), NULL) < 0) {
printf("Unable to declare liveliness subscriber.\n");
exit(-1);
}
Expand Down
Loading

0 comments on commit 37e2a38

Please sign in to comment.