Skip to content

Commit

Permalink
Remove legacy z_zint_t from public API (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc authored Oct 15, 2024
1 parent c75c89a commit 6db8aa7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 0 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,6 @@ Others
Data Structures
---------------
.. autoctype:: types.h::z_zint_t
.. autoctype:: types.h::zp_task_read_options_t
.. autoctype:: types.h::zp_task_lease_options_t
.. autoctype:: types.h::zp_read_options_t
Expand Down
7 changes: 0 additions & 7 deletions include/zenoh-pico/api/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
extern "C" {
#endif

/**
* Represents a variable-length encoding unsigned integer.
*
* It is equivalent to the size of a ``size_t``.
*/
typedef _z_zint_t z_zint_t;

/**
* Represents a Zenoh ID.
*
Expand Down
4 changes: 2 additions & 2 deletions tests/z_client_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int main(int argc, char **argv) {
z_view_keyexpr_t ke;
z_view_keyexpr_from_str(&ke, s1_res);
assert(z_declare_queryable(z_loan(s2), qle, z_loan(ke), z_move(callback), NULL) == _Z_RES_OK);
printf("Declared queryable on session 2: %ju %zu %s\n", (uintmax_t)qle->_val._entity_id, (z_zint_t)0, s1_res);
printf("Declared queryable on session 2: %ju %i %s\n", (uintmax_t)qle->_val._entity_id, 0, s1_res);
qles2 = _z_list_push(qles2, qle);
}

Expand Down Expand Up @@ -315,7 +315,7 @@ int main(int argc, char **argv) {
z_view_keyexpr_t ke;
z_view_keyexpr_from_str(&ke, s1_res);
z_get(z_loan(s1), z_loan(ke), "", z_move(callback), NULL);
printf("Queried data from session 1: %zu %s\n", (z_zint_t)0, s1_res);
printf("Queried data from session 1: %i %s\n", 0, s1_res);
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/z_peer_multicast_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ int main(int argc, char **argv) {
z_view_keyexpr_from_str(&ke, s1_res);
z_result_t res = z_declare_subscriber(z_loan(s2), sub, z_loan(ke), z_move(callback), NULL);
assert(res == _Z_RES_OK);
printf("Declared subscription on session 2: %ju %zu %s\n", (uintmax_t)z_subscriber_loan(sub)->_entity_id,
(z_zint_t)0, s1_res);
printf("Declared subscription on session 2: %ju %i %s\n", (uintmax_t)z_subscriber_loan(sub)->_entity_id, 0,
s1_res);
subs2 = _z_list_push(subs2, sub);
}

Expand Down

0 comments on commit 6db8aa7

Please sign in to comment.