1.10.15
by Matthias Klose
Import upstream version 1.1.2 |
1 |
#ifndef AUTH_REQUEST_HANDLER_H
|
2 |
#define AUTH_REQUEST_HANDLER_H
|
|
1.1.1
by Jaldhar H. Vyas
Import upstream version 1.0.alpha4 |
3 |
|
4 |
struct auth_request; |
|
5 |
struct auth_master_connection; |
|
1.10.12
by Chuck Short
Import upstream version 1.0.13 |
6 |
struct auth_stream_reply; |
1.1.1
by Jaldhar H. Vyas
Import upstream version 1.0.alpha4 |
7 |
|
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
8 |
enum auth_client_result { |
9 |
AUTH_CLIENT_RESULT_CONTINUE = 1, |
|
10 |
AUTH_CLIENT_RESULT_SUCCESS, |
|
11 |
AUTH_CLIENT_RESULT_FAILURE
|
|
12 |
};
|
|
13 |
||
1.10.12
by Chuck Short
Import upstream version 1.0.13 |
14 |
typedef void |
1.13.12
by Jaldhar H. Vyas
Import upstream version 2.2.5 |
15 |
auth_request_callback_t(const char *reply, void *context); |
1.1.1
by Jaldhar H. Vyas
Import upstream version 1.0.alpha4 |
16 |
|
17 |
struct auth_request_handler * |
|
1.13.12
by Jaldhar H. Vyas
Import upstream version 2.2.5 |
18 |
auth_request_handler_create(bool token_auth, auth_request_callback_t *callback, |
19 |
void *context, auth_request_callback_t *master_callback); |
|
20 |
#define auth_request_handler_create(token_auth, callback, context, master_callback)\
|
|
21 |
auth_request_handler_create(token_auth, \
|
|
22 |
(auth_request_callback_t *)callback, \
|
|
23 |
(void *)((char*)context + \
|
|
24 |
CALLBACK_TYPECHECK(callback, void (*)( \
|
|
25 |
const char *, typeof(context)))), \
|
|
1.10.15
by Matthias Klose
Import upstream version 1.1.2 |
26 |
master_callback)
|
1.13.12
by Jaldhar H. Vyas
Import upstream version 2.2.5 |
27 |
|
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
28 |
void auth_request_handler_destroy(struct auth_request_handler **handler); |
1.6.1
by Martin Pitt
Import upstream version 1.0.beta3 |
29 |
void auth_request_handler_unref(struct auth_request_handler **handler); |
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
30 |
void auth_request_handler_abort_requests(struct auth_request_handler *handler); |
1.1.1
by Jaldhar H. Vyas
Import upstream version 1.0.alpha4 |
31 |
|
32 |
void auth_request_handler_set(struct auth_request_handler *handler, |
|
33 |
unsigned int connect_uid, |
|
34 |
unsigned int client_pid); |
|
35 |
||
1.6.1
by Martin Pitt
Import upstream version 1.0.beta3 |
36 |
bool auth_request_handler_auth_begin(struct auth_request_handler *handler, |
37 |
const char *args); |
|
38 |
bool auth_request_handler_auth_continue(struct auth_request_handler *handler, |
|
39 |
const char *args); |
|
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
40 |
void auth_request_handler_reply(struct auth_request *request, |
41 |
enum auth_client_result result, |
|
42 |
const void *reply, size_t reply_size); |
|
43 |
void auth_request_handler_reply_continue(struct auth_request *request, |
|
44 |
const void *reply, size_t reply_size); |
|
1.13.9
by Micah Anderson
Import upstream version 2.1.3 |
45 |
unsigned int |
46 |
auth_request_handler_get_request_count(struct auth_request_handler *handler); |
|
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
47 |
bool auth_request_handler_master_request(struct auth_request_handler *handler, |
1.1.1
by Jaldhar H. Vyas
Import upstream version 1.0.alpha4 |
48 |
struct auth_master_connection *master, |
1.13.12
by Jaldhar H. Vyas
Import upstream version 2.2.5 |
49 |
unsigned int id, unsigned int client_id, |
50 |
const char *const *params); |
|
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
51 |
void auth_request_handler_cancel_request(struct auth_request_handler *handler, |
52 |
unsigned int client_id); |
|
1.1.1
by Jaldhar H. Vyas
Import upstream version 1.0.alpha4 |
53 |
|
1.10.15
by Matthias Klose
Import upstream version 1.1.2 |
54 |
void auth_request_handler_flush_failures(bool flush_all); |
1.1.1
by Jaldhar H. Vyas
Import upstream version 1.0.alpha4 |
55 |
|
56 |
void auth_request_handler_init(void); |
|
57 |
void auth_request_handler_deinit(void); |
|
58 |
||
59 |
#endif
|