remove the old chain_reply code
[tprouty/samba.git] / nsswitch / winbind_client.h
1 #include "winbind_nss_config.h"
2 #include "winbind_struct_protocol.h"
3
4 void winbindd_init_request(struct winbindd_request *req,int rq_type);
5 void winbindd_free_response(struct winbindd_response *response);
6 NSS_STATUS winbindd_send_request(int req_type, int need_priv,
7                                  struct winbindd_request *request);
8 NSS_STATUS winbindd_get_response(struct winbindd_response *response);
9 NSS_STATUS winbindd_request_response(int req_type,
10                             struct winbindd_request *request,
11                             struct winbindd_response *response);
12 NSS_STATUS winbindd_priv_request_response(int req_type,
13                                           struct winbindd_request *request,
14                                           struct winbindd_response *response);
15 int winbindd_read_reply(struct winbindd_response *response);
16
17 #define winbind_env_set() \
18         (strcmp(getenv(WINBINDD_DONT_ENV)?getenv(WINBINDD_DONT_ENV):"0","1") == 0)
19
20 #define winbind_off() \
21         (setenv(WINBINDD_DONT_ENV, "1", 1) == 0)
22
23 #define winbind_on() \
24         (setenv(WINBINDD_DONT_ENV, "0", 1) == 0)
25
26 int winbind_write_sock(void *buffer, int count, int recursing, int need_priv);
27 int winbind_read_sock(void *buffer, int count);
28 void winbind_close_sock(void);
29
30 const char *nss_err_str(NSS_STATUS ret);