Skip to content

Commit

Permalink
Add z_priority_default method
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Sep 16, 2024
1 parent 7b8a151 commit 70c7edb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/zenoh-pico/api/primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,11 @@ bool z_string_is_empty(const z_loaned_string_t *str);
*/
const z_loaned_slice_t *z_string_as_slice(const z_loaned_string_t *str);

/**
* Returns default :c:type:`z_priority_t` value
*/
z_priority_t z_priority_default(void);

/**
* Returns id of Zenoh entity that transmitted hello message.
*
Expand Down
2 changes: 2 additions & 0 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ bool z_string_is_empty(const z_loaned_string_t *str) { return _z_string_is_empty

const z_loaned_slice_t *z_string_as_slice(const z_loaned_string_t *str) { return &str->_slice; }

z_priority_t z_priority_default(void) { return Z_PRIORITY_DEFAULT; }

#if Z_FEATURE_PUBLICATION == 1
void _z_publisher_drop(_z_publisher_t *pub) { _z_publisher_clear(pub); }

Expand Down

0 comments on commit 70c7edb

Please sign in to comment.