Lines Matching refs:dict
152 cfg_search(sdp_session_t ss, int i, prop_dictionary_t dict)
161 if (config_pnp(dict, &rec) == 0)
170 errno = (*cfgtype[i].handler)(dict, &rec);
181 prop_dictionary_t dict;
185 dict = prop_dictionary_create();
186 if (dict == NULL)
195 if (!cfg_search(ss, i, dict))
199 return dict;
214 config_pnp(prop_dictionary_t dict, sdp_data_t *rec)
259 if (!prop_dictionary_set_uint16(dict, BTDEVvendor, (uint16_t)vendor))
262 if (!prop_dictionary_set_uint16(dict, BTDEVproduct, (uint16_t)product))
272 config_hid(prop_dictionary_t dict, sdp_data_t *rec)
321 if (!prop_dictionary_set_string_nocopy(dict, BTDEVtype, "bthidev"))
324 if (!prop_dictionary_set_int32(dict, BTHIDEVcontrolpsm, control_psm) ||
325 !prop_dictionary_set_int32(dict, BTHIDEVinterruptpsm,
330 if (obj == NULL || !prop_dictionary_set(dict, BTHIDEVdescriptor, obj))
336 if (!prop_dictionary_set_string_nocopy(dict, BTDEVmode, mode))
340 if (!prop_dictionary_set_bool(dict, BTHIDEVreconnect, true))
351 config_hset(prop_dictionary_t dict, sdp_data_t *rec)
373 if (!prop_dictionary_set_string_nocopy(dict, BTDEVtype, "btsco"))
376 if (!prop_dictionary_set_int32(dict, BTSCOchannel, channel))
386 config_hf(prop_dictionary_t dict, sdp_data_t *rec)
408 if (!prop_dictionary_set_string_nocopy(dict, BTDEVtype, "btsco"))
411 if (!prop_dictionary_set_bool(dict, BTSCOlisten, true))
414 if (!prop_dictionary_set_int32(dict, BTSCOchannel, channel))