Lines Matching +full:0 +full:x0202

58 #define SDP_ATTR_DEVICE_ID_SERVICE_VENDORID  0x0201
59 #define SDP_ATTR_DEVICE_ID_SERVICE_PRODUCTID 0x0202
60 #define SDP_ATTR_DEVICE_ID_SERVICE_VERSION 0x0203
73 SDP_ATTR_RANGE( 0x0205, /* HIDReconnectInitiate */
74 0x0205),
75 SDP_ATTR_RANGE( 0x0206, /* HIDDescriptorList */
76 0x0206),
77 SDP_ATTR_RANGE( 0x0209, /* HIDBatteryPower */
78 0x0209),
79 SDP_ATTR_RANGE( 0x020d, /* HIDNormallyConnectable */
80 0x020d)
101 return (((e) == 0)? 0 : -1); \
107 for (i = 0; i < nvalues; i ++) {
109 values[i].attr = 0;
122 normally_connectable = 0, battery_power = 0,
124 int16_t vendor_id = 0, product_id = 0, version = 0;
137 if (sdp_error(ss) != 0)
139 if (sdp_search(ss, 1, &service, nattrs, attrs, nvalues, values) != 0)
142 for (i = 0; i < nvalues; i ++) {
155 case 0x0205: /* HIDReconnectInitiate */
159 case 0x0206: /* HIDDescriptorList */
160 if (hid_sdp_parse_hid_descriptor(&values[i]) == 0) {
166 case 0x0209: /* HIDBatteryPower */
170 case 0x020d: /* HIDNormallyConnectable */
178 if (sdp_search(ss, 1, &service_devid, 1, &attrs_devid, nvalues, values) != 0)
182 if (sdp_get_lcaddr(ss, &sdp_local) != 0 ||
183 bt_devname(devname, &sdp_local) == 0)
190 for (i = 0; i < 3; i ++ ) {
229 hd->reconnect_initiate = reconnect_initiate? 1 : 0;
230 hd->battery_power = battery_power? 1 : 0;
231 hd->normally_connectable = normally_connectable? 1 : 0;
236 return (0);
449 if (descriptor_type == UDESC_REPORT && len > 0) {
453 return (0);
466 if (a->vlen != 2 || a->value[0] != SDP_DATA_BOOL)
480 if (hid_sdp_query(NULL, &hd, &e) < 0) {