Lines Matching refs:val
28 static bt_property_t* property_new_(void* val, size_t len,
39 clone[i].val = osi_calloc(clone[i].len); in property_copy_array()
40 memcpy(clone[i].val, properties[i].val, clone[i].len); in property_copy_array()
73 return strlen((const char*)longer->val) == (size_t)shorter->len && in property_equals()
74 !memcmp(longer->val, shorter->val, shorter->len); in property_equals()
77 return p1->len == p2->len && !memcmp(p1->val, p2->val, p1->len); in property_equals()
128 osi_free(properties[i].val); in property_free_array()
177 return (const RawAddress*)property->val; in property_as_addr()
183 return (const bt_device_class_t*)property->val; in property_as_device_class()
188 return *(const bt_device_type_t*)property->val; in property_as_device_type()
193 return *(const uint32_t*)property->val; in property_as_discovery_timeout()
198 return (const bt_bdname_t*)property->val; in property_as_name()
203 return *(const int8_t*)property->val; in property_as_rssi()
208 return *(const bt_scan_mode_t*)property->val; in property_as_scan_mode()
214 return (const Uuid*)property->val; in property_as_uuids()
217 static bt_property_t* property_new_(void* val, size_t len, in property_new_() argument
222 property->val = osi_calloc(len + 1); in property_new_()
224 strlcpy((char*)property->val, (const char*)val, len); in property_new_()
226 memcpy(property->val, val, len); in property_new_()