diff options
-rw-r--r-- | hcid/dbus-service.c | 4 | ||||
-rw-r--r-- | hcid/dbus-service.h | 2 | ||||
-rw-r--r-- | hcid/hcid.h | 2 | ||||
-rw-r--r-- | hcid/storage.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 4e8ff33c..98a5b049 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -663,7 +663,7 @@ void unregister_service(const char *ident) unregister_uuids(ident); } -static struct adapter *ba2adapter(bdaddr_t *src) +static struct adapter *ba2adapter(const bdaddr_t *src) { DBusConnection *conn = get_dbus_connection(); struct adapter *adapter = NULL; @@ -693,7 +693,7 @@ static void agent_auth_cb(struct agent *agent, DBusError *derr, void *user_data) g_free(auth); } -int service_req_auth(bdaddr_t *src, bdaddr_t *dst, +int service_req_auth(const bdaddr_t *src, const bdaddr_t *dst, const char *uuid, service_auth_cb cb, void *user_data) { struct service_auth *auth; diff --git a/hcid/dbus-service.h b/hcid/dbus-service.h index 8923907a..079cea92 100644 --- a/hcid/dbus-service.h +++ b/hcid/dbus-service.h @@ -42,6 +42,6 @@ int register_service(const char *ident, const char **uuids); void unregister_service(const char *ident); typedef void (*service_auth_cb) (DBusError *derr, void *user_data); -int service_req_auth(bdaddr_t *src, bdaddr_t *dst, +int service_req_auth(const bdaddr_t *src, const bdaddr_t *dst, const char *uuid, service_auth_cb cb, void *user_data); int service_cancel_auth(bdaddr_t *src); diff --git a/hcid/hcid.h b/hcid/hcid.h index f32f4ae7..6d28bb67 100644 --- a/hcid/hcid.h +++ b/hcid/hcid.h @@ -206,7 +206,7 @@ int write_link_key(bdaddr_t *local, bdaddr_t *peer, unsigned char *key, int type int read_link_key(bdaddr_t *local, bdaddr_t *peer, unsigned char *key); int read_pin_length(bdaddr_t *local, bdaddr_t *peer); int read_pin_code(bdaddr_t *local, bdaddr_t *peer, char *pin); -gboolean read_trust(bdaddr_t *local, const char *addr, const char *service); +gboolean read_trust(const bdaddr_t *local, const char *addr, const char *service); int write_trust(bdaddr_t *local, const char *addr, const char *service, gboolean trust); GSList *list_trusts(bdaddr_t *local, const char *service); int write_device_profiles(bdaddr_t *src, bdaddr_t *dst, const char *profiles); diff --git a/hcid/storage.c b/hcid/storage.c index 7c053cd5..4dbf8a94 100644 --- a/hcid/storage.c +++ b/hcid/storage.c @@ -45,7 +45,7 @@ #include "textfile.h" #include "hcid.h" -static inline int create_filename(char *buf, size_t size, bdaddr_t *bdaddr, const char *name) +static inline int create_filename(char *buf, size_t size, const bdaddr_t *bdaddr, const char *name) { char addr[18]; @@ -623,7 +623,7 @@ int write_trust(bdaddr_t *local, const char *addr, const char *service, return ret; } -gboolean read_trust(bdaddr_t *local, const char *addr, const char *service) +gboolean read_trust(const bdaddr_t *local, const char *addr, const char *service) { char filename[PATH_MAX + 1], *str; GSList *services; |