s3:winbind: Add a comment about fill_grent_mem_domusers...
[Samba/aatanasov.git] / nsswitch / winbind_client.h
blobb004d9c2c02ed22b6213b238b5e7ee97775fbab8
1 #include "winbind_nss_config.h"
2 #include "winbind_struct_protocol.h"
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);
17 #define winbind_env_set() \
18 (strcmp(getenv(WINBINDD_DONT_ENV)?getenv(WINBINDD_DONT_ENV):"0","1") == 0)
20 #define winbind_off() \
21 (setenv(WINBINDD_DONT_ENV, "1", 1) == 0)
23 #define winbind_on() \
24 (setenv(WINBINDD_DONT_ENV, "0", 1) == 0)
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);
30 const char *nss_err_str(NSS_STATUS ret);