Lines Matching defs:obj
88 prop_object_t obj;
91 obj = prop_dictionary_get(dict, BTDEVladdr);
92 if (prop_object_type(obj) != PROP_TYPE_DATA) {
95 printf("local bdaddr: %s\n", bt_ntoa(prop_data_value(obj), NULL));
97 obj = prop_dictionary_get(dict, BTDEVraddr);
98 if (prop_object_type(obj) != PROP_TYPE_DATA) {
101 printf("remote bdaddr: %s\n", bt_ntoa(prop_data_value(obj), NULL));
103 obj = prop_dictionary_get(dict, BTDEVmode);
104 if (prop_object_type(obj) == PROP_TYPE_STRING)
105 printf("link mode: %s\n", prop_string_value(obj));
113 obj = prop_dictionary_get(dict, BTDEVtype);
114 if (prop_object_type(obj) != PROP_TYPE_STRING) {
118 printf("device type: %s\n", prop_string_value(obj));
120 if (prop_string_equals_string(obj, "bthidev")) {
125 if (prop_string_equals_string(obj, "btsco")) {
136 prop_object_t obj;
138 obj = prop_dictionary_get(dict, BTHIDEVcontrolpsm);
139 if (prop_object_type(obj) == PROP_TYPE_NUMBER)
141 prop_number_signed_value(obj));
143 obj = prop_dictionary_get(dict, BTHIDEVinterruptpsm);
144 if (prop_object_type(obj) == PROP_TYPE_NUMBER)
146 prop_number_signed_value(obj));
148 obj = prop_dictionary_get(dict, BTHIDEVreconnect);
149 if (prop_bool_true(obj))
152 obj = prop_dictionary_get(dict, BTHIDEVdescriptor);
153 if (prop_object_type(obj) == PROP_TYPE_DATA)
154 hid_parse(obj);
160 prop_object_t obj;
162 obj = prop_dictionary_get(dict, BTSCOlisten);
163 printf("mode: %s\n", prop_bool_true(obj) ? "listen" : "connect");
165 obj = prop_dictionary_get(dict, BTSCOchannel);
166 if (prop_object_type(obj) == PROP_TYPE_NUMBER)
168 prop_number_signed_value(obj));