Fix wrong usage of non const bdaddr_t

This commit is contained in:
Marcel Holtmann 2008-05-15 22:49:02 +00:00
parent dcaedb1f98
commit dcada8eed7
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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