Lines Matching defs:bdaddr
47 char *bdaddr;
188 static void print_printer_details(const char *name, const char *bdaddr, const char *id)
194 bdaddr[0], bdaddr[1],
195 bdaddr[3], bdaddr[4],
196 bdaddr[6], bdaddr[7],
197 bdaddr[9], bdaddr[10],
198 bdaddr[12], bdaddr[13],
199 bdaddr[15], bdaddr[16]);
209 static void add_device_to_list(const char *name, const char *bdaddr, const char *id)
218 if (strcmp(device->bdaddr, bdaddr) == 0) {
231 device->bdaddr = g_strdup(bdaddr);
236 print_printer_details(device->name, device->bdaddr, device->id);
239 static gboolean parse_device_properties(DBusMessageIter *reply_iter, char **name, char **bdaddr)
282 } else if (bdaddr) {
283 *bdaddr = g_strdup(value);
297 static gboolean device_is_printer(const char *adapter, const char *device_path, char **name, char **bdaddr)
317 retval = parse_device_properties(&reply_iter, name, bdaddr);
324 static void remote_device_found(const char *adapter, const char *bdaddr, const char *name)
351 dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &bdaddr);
366 dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &bdaddr);
382 add_device_to_list(name, bdaddr, id);
394 static void remote_device_disappeared(const char *bdaddr)
401 if (strcmp(device->bdaddr, bdaddr) == 0) {
403 g_free(device->bdaddr);
442 char *bdaddr = NULL;
445 if (device_is_printer(adapter, object_path, &name, &bdaddr)) {
449 add_device_to_list(name, bdaddr, id);
453 g_free(bdaddr);
466 const char *adapter, *bdaddr;
471 dbus_message_iter_get_basic(&iter, &bdaddr);
476 remote_device_found(adapter, bdaddr, name);
480 char *bdaddr;
483 DBUS_TYPE_STRING, &bdaddr,
485 remote_device_disappeared(bdaddr);
616 bdaddr_t bdaddr;
681 str2ba(device, &bdaddr);
707 sdp = sdp_connect(BDADDR_ANY, &bdaddr, SDP_RETRY_IF_BUSY);
747 err = spp_print(BDADDR_ANY, &bdaddr, channel,
751 err = hcrp_print(BDADDR_ANY, &bdaddr, ctrl_psm, data_psm,