mirror of
https://github.com/sailfishos/ofono
synced 2025-12-07 18:21:08 +08:00
bluez5: Add bt_bacmp()
Adds a copy of BlueZ bacmp() function.
This commit is contained in:
committed by
Denis Kenzior
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]);
|
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)
|
static void profile_register_cb(DBusPendingCall *call, gpointer user_data)
|
||||||
{
|
{
|
||||||
DBusMessage *reply;
|
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_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,
|
int bluetooth_register_profile(DBusConnection *conn, const char *uuid,
|
||||||
const char *name, const char *object);
|
const char *name, const char *object);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user