bluez5: Add bt_bacpy()

Adds a copy of BlueZ bacpy() function.
This commit is contained in:
Claudio Takahasi 2013-01-28 18:11:02 -03:00 committed by Denis Kenzior
parent a2376f6c77
commit 5e84f78869
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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);