mirror of git://git.sysmocom.de/ofono
bluez5: Add bt_bacpy()
Adds a copy of BlueZ bacpy() function.
This commit is contained in:
parent
a2376f6c77
commit
5e84f78869
|
@ -26,6 +26,7 @@
|
|||
#include <errno.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/socket.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -39,6 +40,11 @@
|
|||
|
||||
#define BLUEZ_PROFILE_MGMT_INTERFACE BLUEZ_SERVICE ".ProfileManager1"
|
||||
|
||||
void bt_bacpy(bdaddr_t *dst, const bdaddr_t *src)
|
||||
{
|
||||
memcpy(dst, src, sizeof(bdaddr_t));
|
||||
}
|
||||
|
||||
static void profile_register_cb(DBusPendingCall *call, gpointer user_data)
|
||||
{
|
||||
DBusMessage *reply;
|
||||
|
|
|
@ -56,6 +56,8 @@ struct sockaddr_sco {
|
|||
bdaddr_t sco_bdaddr;
|
||||
};
|
||||
|
||||
void bt_bacpy(bdaddr_t *dst, const bdaddr_t *src);
|
||||
|
||||
int bluetooth_register_profile(DBusConnection *conn, const char *uuid,
|
||||
const char *name, const char *object);
|
||||
|
||||
|
|
Loading…
Reference in New Issue