mirror of git://git.sysmocom.de/ofono
bluez5: Add bt_bacmp()
Adds a copy of BlueZ bacmp() function.
This commit is contained in:
parent
e8621fe8c2
commit
6985c798b2
|
@ -52,6 +52,11 @@ int bt_ba2str(const bdaddr_t *ba, char *str)
|
|||
ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]);
|
||||
}
|
||||
|
||||
int bt_bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2)
|
||||
{
|
||||
return memcmp(ba1, ba2, sizeof(bdaddr_t));
|
||||
}
|
||||
|
||||
static void profile_register_cb(DBusPendingCall *call, gpointer user_data)
|
||||
{
|
||||
DBusMessage *reply;
|
||||
|
|
|
@ -60,6 +60,8 @@ void bt_bacpy(bdaddr_t *dst, const bdaddr_t *src);
|
|||
|
||||
int bt_ba2str(const bdaddr_t *ba, char *str);
|
||||
|
||||
int bt_bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2);
|
||||
|
||||
int bluetooth_register_profile(DBusConnection *conn, const char *uuid,
|
||||
const char *name, const char *object);
|
||||
|
||||
|
|
Loading…
Reference in New Issue