diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-04-11 20:41:50 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-04-11 20:41:50 +0300 |
commit | fc4c6f53f10e4aba7c3183ba294618ec489fc683 (patch) | |
tree | 8f20d69cd9b8d9ef4bb76447761f96208363e040 /src/agent.h | |
parent | 3174a9545803475c52e0ef547fb390f4f6be6e57 (diff) | |
download | bluez-fc4c6f53f10e4aba7c3183ba294618ec489fc683.tar.gz |
Add GDestroyNotify support to agent callbacks
Diffstat (limited to 'src/agent.h')
-rw-r--r-- | src/agent.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/agent.h b/src/agent.h index 7b4290b53..314baf995 100644 --- a/src/agent.h +++ b/src/agent.h @@ -42,20 +42,24 @@ struct agent *agent_create(struct btd_adapter *adapter, const char *name, int agent_destroy(struct agent *agent, gboolean exited); int agent_authorize(struct agent *agent, const char *path, - const char *uuid, agent_cb cb, void *user_data); + const char *uuid, agent_cb cb, void *user_data, + GDestroyNotify destroy); int agent_request_pincode(struct agent *agent, struct btd_device *device, - agent_pincode_cb cb, void *user_data); + agent_pincode_cb cb, void *user_data, + GDestroyNotify destroy); int agent_confirm_mode_change(struct agent *agent, const char *new_mode, - agent_cb cb, void *user_data); + agent_cb cb, void *user_data, + GDestroyNotify destroy); int agent_request_passkey(struct agent *agent, struct btd_device *device, - agent_passkey_cb cb, void *user_data); + agent_passkey_cb cb, void *user_data, + GDestroyNotify destroy); int agent_request_confirmation(struct agent *agent, struct btd_device *device, uint32_t passkey, agent_cb cb, - void *user_data); + void *user_data, GDestroyNotify destroy); int agent_display_passkey(struct agent *agent, struct btd_device *device, uint32_t passkey); |