Further rework the RPC-PAC test.
[samba.git] / source / 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 bool winbind_env_set(void);
18 bool winbind_off(void);
19 bool winbind_on(void);
20
21 int winbind_write_sock(void *buffer, int count, int recursing, int need_priv);
22 int winbind_read_sock(void *buffer, int count);
23 void winbind_close_sock(void);
24
25 const char *nss_err_str(NSS_STATUS ret);