mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
Fix wrong usage of non const bdaddr_t
This commit is contained in:
parent
dcaedb1f98
commit
dcada8eed7
@ -1073,7 +1073,7 @@ int input_device_unregister(DBusConnection *conn, const char *path)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct device *find_device(bdaddr_t *src, bdaddr_t *dst)
|
||||
static struct device *find_device(const bdaddr_t *src, const bdaddr_t *dst)
|
||||
{
|
||||
struct device *idev;
|
||||
GSList *list;
|
||||
@ -1097,7 +1097,7 @@ gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk)
|
||||
int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm, int nsk)
|
||||
{
|
||||
struct device *idev = find_device(src, dst);
|
||||
if (!idev)
|
||||
@ -1115,7 +1115,7 @@ int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int input_device_close_channels(bdaddr_t *src, bdaddr_t *dst)
|
||||
int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst)
|
||||
{
|
||||
struct device *idev = find_device(src, dst);
|
||||
if (!idev)
|
||||
|
@ -45,6 +45,6 @@ int input_device_unregister(DBusConnection *conn, const char *path);
|
||||
|
||||
gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst);
|
||||
|
||||
int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk);
|
||||
int input_device_close_channels(bdaddr_t *src, bdaddr_t *dst);
|
||||
int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm, int nsk);
|
||||
int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst);
|
||||
int input_device_connadd(bdaddr_t *src, bdaddr_t *dst);
|
||||
|
@ -122,7 +122,7 @@ static void auth_callback(DBusError *derr, void *user_data)
|
||||
g_free(auth);
|
||||
}
|
||||
|
||||
static int authorize_device(bdaddr_t *src, bdaddr_t *dst)
|
||||
static int authorize_device(const bdaddr_t *src, const bdaddr_t *dst)
|
||||
{
|
||||
struct authorization_data *auth;
|
||||
DBusMessage *msg;
|
||||
|
Loading…
Reference in New Issue
Block a user