0
|
1 #ifndef __AUTH_PROCESS_H
|
|
2 #define __AUTH_PROCESS_H
|
|
3
|
|
4 /* cookie_reply is NULL if some error occured */
|
|
5 typedef void (*AuthCallback)(AuthCookieReplyData *cookie_reply,
|
|
6 void *user_data);
|
|
7
|
|
8 typedef struct _AuthProcess AuthProcess;
|
|
9
|
|
10 /* Find process for given id */
|
|
11 AuthProcess *auth_process_find(int id);
|
|
12
|
|
13 /* Request information about given cookie */
|
|
14 void auth_process_request(AuthProcess *process, int id,
|
|
15 unsigned char cookie[AUTH_COOKIE_SIZE],
|
|
16 AuthCallback callback, void *user_data);
|
|
17
|
|
18 /* Close any fds used by auth processes */
|
|
19 void auth_processes_cleanup(void);
|
|
20
|
|
21 void auth_processes_init(void);
|
|
22 void auth_processes_deinit(void);
|
|
23
|
|
24 #endif
|