auth-worker-client.h revision 50168536f8d04626d71860c73b2efc18d407d083
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainen#ifndef AUTH_WORKER_CLIENT_H
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainen#define AUTH_WORKER_CLIENT_H
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainen
70cb37c37e4dce8f57cd3f882f7444e76b918befTimo Sirainen#define AUTH_WORKER_PROTOCOL_MAJOR_VERSION 1
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainen#define AUTH_WORKER_PROTOCOL_MINOR_VERSION 0
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainen#define AUTH_WORKER_MAX_LINE_LENGTH 8192
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainen
12aad74464367f7e8be11eafe1af985bf7b1adecTimo Sirainenextern struct auth_worker_client *auth_worker_client;
12aad74464367f7e8be11eafe1af985bf7b1adecTimo Sirainen
25757faf029c369a8318349dafe952e2358df1d8Timo Sirainenstruct auth_worker_client *auth_worker_client_create(struct auth *auth, int fd);
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainenbool auth_worker_auth_request_new(struct auth_worker_client *client, unsigned int id,
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainen const char *const *args, struct auth_request **request_r);
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainenvoid auth_worker_client_destroy(struct auth_worker_client **client);
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainenvoid auth_worker_client_unref(struct auth_worker_client **client);
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainen
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainenvoid auth_worker_client_send_error(void);
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainenvoid auth_worker_client_send_success(void);
ba3a54872528db0eae3f36e45592219965b9faf8Timo Sirainenvoid auth_worker_client_send_shutdown(void);
1f1e81aab38d833d1c9cdc244c91fd762e0080d4Timo Sirainen
1f1e81aab38d833d1c9cdc244c91fd762e0080d4Timo Sirainen#endif
1f1e81aab38d833d1c9cdc244c91fd762e0080d4Timo Sirainen