OSDN Git Service

android/bluetooth: Add bt_device_set_uuids
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 6 Jun 2014 15:06:44 +0000 (18:06 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 13 Jun 2014 12:47:34 +0000 (15:47 +0300)
android/bluetooth.c
android/bluetooth.h

index 4ec7c7a..9d17faa 100644 (file)
@@ -1409,6 +1409,19 @@ bool bt_device_is_bonded(const bdaddr_t *bdaddr)
        return false;
 }
 
+bool bt_device_set_uuids(const bdaddr_t *addr, GSList *uuids)
+{
+       struct device *dev;
+
+       dev = find_device(addr);
+       if (!dev)
+               return false;
+
+       set_device_uuids(dev, uuids);
+
+       return true;
+}
+
 static bool rssi_above_threshold(int old, int new)
 {
        /* only 8 dBm or more */
index 7c64bab..eb50fe1 100644 (file)
@@ -61,6 +61,7 @@ bool bt_is_device_le(const bdaddr_t *addr);
 
 const char *bt_get_adapter_name(void);
 bool bt_device_is_bonded(const bdaddr_t *bdaddr);
+bool bt_device_set_uuids(const bdaddr_t *bdaddr, GSList *uuids);
 
 typedef void (*bt_read_device_rssi_done)(uint8_t status, const bdaddr_t *addr,
                                                int8_t rssi, void *user_data);