~ubuntu-branches/ubuntu/wily/bluez/wily

« back to all changes in this revision

Viewing changes to src/agent.h

ImportĀ upstreamĀ versionĀ 4.81

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  BlueZ - Bluetooth protocol stack for Linux
4
4
 *
5
 
 *  Copyright (C) 2006-2008  Nokia Corporation
6
 
 *  Copyright (C) 2004-2009  Marcel Holtmann <marcel@holtmann.org>
 
5
 *  Copyright (C) 2006-2010  Nokia Corporation
 
6
 *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
7
7
 *
8
8
 *
9
9
 *  This program is free software; you can redistribute it and/or modify
39
39
                                const char *path, uint8_t capability,
40
40
                                agent_remove_cb cb, void *remove_cb_data);
41
41
 
42
 
int agent_destroy(struct agent *agent, gboolean exited);
 
42
void agent_free(struct agent *agent);
43
43
 
44
44
int agent_authorize(struct agent *agent, const char *path,
45
 
                        const char *uuid, agent_cb cb, void *user_data);
 
45
                        const char *uuid, agent_cb cb, void *user_data,
 
46
                        GDestroyNotify destroy);
46
47
 
47
48
int agent_request_pincode(struct agent *agent, struct btd_device *device,
48
 
                                agent_pincode_cb cb, void *user_data);
 
49
                                agent_pincode_cb cb, void *user_data,
 
50
                                GDestroyNotify destroy);
49
51
 
50
52
int agent_confirm_mode_change(struct agent *agent, const char *new_mode,
51
 
                                agent_cb cb, void *user_data);
 
53
                                agent_cb cb, void *user_data,
 
54
                                GDestroyNotify destroy);
52
55
 
53
56
int agent_request_passkey(struct agent *agent, struct btd_device *device,
54
 
                                agent_passkey_cb cb, void *user_data);
 
57
                                agent_passkey_cb cb, void *user_data,
 
58
                                GDestroyNotify destroy);
55
59
 
56
60
int agent_request_confirmation(struct agent *agent, struct btd_device *device,
57
61
                                uint32_t passkey, agent_cb cb,
58
 
                                void *user_data);
 
62
                                void *user_data, GDestroyNotify destroy);
59
63
 
60
64
int agent_display_passkey(struct agent *agent, struct btd_device *device,
61
65
                                uint32_t passkey);