Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14faa3bd authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Update for change in Bluez version.

1. Implement address copy
2. Update device properties parsing.

Change-Id: I112371c848cdfaa2f02e0c447154070c0a38737f
parent 72b18064
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -491,7 +491,7 @@ static int setup_listening_socket(int dev, int channel) {
    }

    laddr.rc_family = AF_BLUETOOTH;
    bacpy(&laddr.rc_bdaddr, BDADDR_ANY);
    memcpy(&laddr.rc_bdaddr, BDADDR_ANY, sizeof(bdaddr_t));
    laddr.rc_channel = channel;

    if (bind(sk, (struct sockaddr *)&laddr, sizeof(laddr)) < 0) {
+3 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ static Properties remote_device_properties[] = {
    {"Icon", DBUS_TYPE_STRING},
    {"Class", DBUS_TYPE_UINT32},
    {"UUIDs", DBUS_TYPE_ARRAY},
    {"Services", DBUS_TYPE_ARRAY},
    {"Paired", DBUS_TYPE_BOOLEAN},
    {"Connected", DBUS_TYPE_BOOLEAN},
    {"Trusted", DBUS_TYPE_BOOLEAN},
@@ -52,7 +53,8 @@ static Properties remote_device_properties[] = {
    {"Adapter", DBUS_TYPE_OBJECT_PATH},
    {"LegacyPairing", DBUS_TYPE_BOOLEAN},
    {"RSSI", DBUS_TYPE_INT16},
    {"TX", DBUS_TYPE_UINT32}
    {"TX", DBUS_TYPE_UINT32},
    {"Broadcaster", DBUS_TYPE_BOOLEAN}
};

static Properties adapter_properties[] = {