• Home
  • Raw
  • Download

Lines Matching refs:prop

246 static int prop2cfg(bt_bdaddr_t *remote_bd_addr, bt_property_t *prop)  in prop2cfg()  argument
251 BTIF_TRACE_DEBUG3("in, bd addr:%s, prop type:%d, len:%d", bdstr, prop->type, prop->len); in prop2cfg()
253 if(prop->len <= 0 || prop->len > (int)sizeof(value) - 1) in prop2cfg()
255 BTIF_TRACE_ERROR2("property type:%d, len:%d is invalid", prop->type, prop->len); in prop2cfg()
258 switch(prop->type) in prop2cfg()
265 strncpy(value, (char*)prop->val, prop->len); in prop2cfg()
266 value[prop->len]='\0'; in prop2cfg()
274 strncpy(value, (char*)prop->val, prop->len); in prop2cfg()
275 value[prop->len]='\0'; in prop2cfg()
280 BTIF_STORAGE_KEY_ADAPTER_SCANMODE, *(int*)prop->val); in prop2cfg()
284 BTIF_STORAGE_KEY_ADAPTER_DISC_TIMEOUT, *(int*)prop->val); in prop2cfg()
288 BTIF_STORAGE_PATH_REMOTE_DEVCLASS, *(int*)prop->val); in prop2cfg()
292 BTIF_STORAGE_PATH_REMOTE_DEVTYPE, *(int*)prop->val); in prop2cfg()
299 for (i=0; i < (prop->len)/sizeof(bt_uuid_t); i++) in prop2cfg()
301 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i; in prop2cfg()
314 bt_remote_version_t *info = (bt_remote_version_t *)prop->val; in prop2cfg()
329 BTIF_TRACE_ERROR1("Unknow prop type:%d", prop->type); in prop2cfg()
334 static int cfg2prop(bt_bdaddr_t *remote_bd_addr, bt_property_t *prop) in cfg2prop() argument
339 BTIF_TRACE_DEBUG3("in, bd addr:%s, prop type:%d, len:%d", bdstr, prop->type, prop->len); in cfg2prop()
340 if(prop->len <= 0) in cfg2prop()
342 BTIF_TRACE_ERROR2("property type:%d, len:%d is invalid", prop->type, prop->len); in cfg2prop()
346 switch(prop->type) in cfg2prop()
349 if(prop->len >= (int)sizeof(int)) in cfg2prop()
351 BTIF_STORAGE_PATH_REMOTE_DEVTIME, (int*)prop->val); in cfg2prop()
355 int len = prop->len; in cfg2prop()
358 BTIF_STORAGE_PATH_REMOTE_NAME, (char*)prop->val, &len); in cfg2prop()
360 BTIF_STORAGE_KEY_ADAPTER_NAME, (char*)prop->val, &len); in cfg2prop()
361 if(ret && len && len <= prop->len) in cfg2prop()
362 prop->len = len - 1; in cfg2prop()
365 prop->len = 0; in cfg2prop()
372 int len = prop->len; in cfg2prop()
374 BTIF_STORAGE_PATH_REMOTE_ALIASE, (char*)prop->val, &len); in cfg2prop()
375 if(ret && len && len <= prop->len) in cfg2prop()
376 prop->len = len - 1; in cfg2prop()
379 prop->len = 0; in cfg2prop()
385 if(prop->len >= (int)sizeof(int)) in cfg2prop()
387 BTIF_STORAGE_KEY_ADAPTER_SCANMODE, (int*)prop->val); in cfg2prop()
390 if(prop->len >= (int)sizeof(int)) in cfg2prop()
392 BTIF_STORAGE_KEY_ADAPTER_DISC_TIMEOUT, (int*)prop->val); in cfg2prop()
395 if(prop->len >= (int)sizeof(int)) in cfg2prop()
397 BTIF_STORAGE_PATH_REMOTE_DEVCLASS, (int*)prop->val); in cfg2prop()
400 if(prop->len >= (int)sizeof(int)) in cfg2prop()
402 bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTYPE, (int*)prop->val); in cfg2prop()
411 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val; in cfg2prop()
414 prop->len = num_uuids * sizeof(bt_uuid_t); in cfg2prop()
419 prop->val = NULL; in cfg2prop()
420 prop->len = 0; in cfg2prop()
426 bt_remote_version_t *info = (bt_remote_version_t *)prop->val; in cfg2prop()
428 if(prop->len >= (int)sizeof(bt_remote_version_t)) in cfg2prop()
444 BTIF_TRACE_ERROR1("Unknow prop type:%d", prop->type); in cfg2prop()