-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for qos settings in sample #348
Changes from all commits
84b11ad
d356881
cb554fd
f0545eb
6e10617
29fca01
bb65bc8
39cfc82
245aade
790bd62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,6 +211,13 @@ _z_keyexpr_t _z_rname(const char *rname); | |
*/ | ||
_z_keyexpr_t _z_rid_with_suffix(uint16_t rid, const char *suffix); | ||
|
||
/** | ||
* QoS settings of zenoh message. | ||
*/ | ||
typedef struct { | ||
uint8_t _val; | ||
} _z_qos_t; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment and the structure do not agree on type visibility ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
/** | ||
* A zenoh-net data sample. | ||
* | ||
|
@@ -227,6 +234,7 @@ typedef struct { | |
_z_timestamp_t timestamp; | ||
_z_encoding_t encoding; | ||
z_sample_kind_t kind; | ||
_z_qos_t qos; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty sure by putting the private type here, the public alias |
||
#if Z_FEATURE_ATTACHMENT == 1 | ||
z_attachment_t attachment; | ||
#endif | ||
|
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.1 rule Note