Lines Matching refs:resource_param
177 str resource_param = { 0, NULL }, query_pattern = { 0, NULL }; local
192 resource_param.s = COAP_OPT_VALUE(query_filter);
193 while (resource_param.length < COAP_OPT_LENGTH(query_filter)
194 && resource_param.s[resource_param.length] != '=')
195 resource_param.length++;
197 if (resource_param.length < COAP_OPT_LENGTH(query_filter)) {
199 if (resource_param.length == 4 &&
200 memcmp(resource_param.s, "href", 4) == 0)
204 if (resource_param.length == rt_attributes->length &&
205 memcmp(resource_param.s, rt_attributes->s, rt_attributes->length) == 0) {
213 COAP_OPT_VALUE(query_filter) + resource_param.length + 1;
215 assert((resource_param.length + 1) <= COAP_OPT_LENGTH(query_filter));
217 COAP_OPT_LENGTH(query_filter) - (resource_param.length + 1);
236 if (resource_param.length) { /* there is a query filter */
244 attr = coap_find_attr(r, resource_param.s, resource_param.length);