Lines Matching refs:options
50 bool is_observe(struct o_coap_option *options, uint8_t options_cnt) in is_observe() argument
53 if (options[i].option_number == OBSERVE) { in is_observe()
60 bool get_observe_value(struct o_coap_option *options, uint8_t options_cnt, in get_observe_value() argument
63 if ((NULL == options) || (NULL == output)) { in get_observe_value()
68 if (OBSERVE != options[i].option_number) { in get_observe_value()
72 output->ptr = options[i].value; in get_observe_value()
73 output->len = options[i].len; in get_observe_value()
80 enum err cache_echo_val(struct byte_array *dest, struct o_coap_option *options, in cache_echo_val() argument
84 if (options[i].option_number == ECHO) { in cache_echo_val()
86 TRY(_memcpy_s(dest->ptr, dest->len, options[i].value, in cache_echo_val()
87 options[i].len)); in cache_echo_val()
88 dest->len = options[i].len; in cache_echo_val()
146 enum err uri_path_create(struct o_coap_option *options, uint32_t options_size, in uri_path_create() argument
149 if ((NULL == options) || (NULL == uri_path) || in uri_path_create()
162 struct o_coap_option *option = &options[index]; in uri_path_create()