File tree 2 files changed +8
-2
lines changed
include/zenoh-pico/protocol/definitions
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,15 @@ static inline z_congestion_control_t _z_n_qos_get_congestion_control(_z_n_qos_t
95
95
(n_qos ._val & 0x08 ) ? Z_CONGESTION_CONTROL_BLOCK : Z_CONGESTION_CONTROL_DROP ; // 0b1000
96
96
return ret ;
97
97
}
98
- static inline bool _z_n_qos_get_express (_z_n_qos_t n_qos ) { return (bool )(n_qos ._val & 0x10 /* 0b10000 */ ); }
98
+ static inline bool _z_n_qos_get_express (_z_n_qos_t n_qos ) {
99
+ bool ret = (n_qos ._val & 0x10 ) != 0 ; // 0b10000
100
+ return ret ;
101
+ }
99
102
#define _z_n_qos_make (express , nodrop , priority ) \
100
103
_z_n_qos_create((bool)express, nodrop ? Z_CONGESTION_CONTROL_BLOCK : Z_CONGESTION_CONTROL_DROP, \
101
104
(z_priority_t)priority)
102
- static const _z_qos_t _Z_N_QOS_DEFAULT = {._val = 5 };
105
+
106
+ extern const _z_qos_t _Z_N_QOS_DEFAULT ;
103
107
104
108
// RESPONSE FINAL message flags:
105
109
// Z Extensions if Z==1 then Zenoh extensions are present
Original file line number Diff line number Diff line change 19
19
#include "zenoh-pico/protocol/definitions/message.h"
20
20
#include "zenoh-pico/utils/logging.h"
21
21
22
+ const _z_qos_t _Z_N_QOS_DEFAULT = {._val = 5 };
23
+
22
24
_z_n_msg_request_exts_t _z_n_msg_request_needed_exts (const _z_n_msg_request_t * msg ) {
23
25
_z_n_msg_request_exts_t ret = {.n = 0 ,
24
26
.ext_budget = msg -> _ext_budget != 0 ,
You can’t perform that action at this time.
0 commit comments