s4-auth: Make sure error_string is correctly initialized
[Samba.git] / nsswitch / wb_reqtrans.h
blob941edf659ab43b766747dae4715a8f9e0a8b5f2e
1 /*
2 Unix SMB/CIFS implementation.
3 Headers for the async winbind client library
4 Copyright (C) Volker Lendecke 2008
6 ** NOTE! The following LGPL license applies to the wbclient
7 ** library. This does NOT imply that all of Samba is released
8 ** under the LGPL
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 3 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Library General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef _WB_REQTRANS_H_
25 #define _WB_REQTRANS_H_
27 #include <talloc.h>
28 #include <tevent.h>
29 #include "nsswitch/winbind_struct_protocol.h"
31 struct tevent_req *wb_req_read_send(TALLOC_CTX *mem_ctx,
32 struct tevent_context *ev,
33 int fd, size_t max_extra_data);
34 ssize_t wb_req_read_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
35 struct winbindd_request **preq, int *err);
37 struct tevent_req *wb_req_write_send(TALLOC_CTX *mem_ctx,
38 struct tevent_context *ev,
39 struct tevent_queue *queue, int fd,
40 struct winbindd_request *wb_req);
41 ssize_t wb_req_write_recv(struct tevent_req *req, int *err);
43 struct tevent_req *wb_resp_read_send(TALLOC_CTX *mem_ctx,
44 struct tevent_context *ev, int fd);
45 ssize_t wb_resp_read_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
46 struct winbindd_response **presp, int *err);
48 struct tevent_req *wb_resp_write_send(TALLOC_CTX *mem_ctx,
49 struct tevent_context *ev,
50 struct tevent_queue *queue, int fd,
51 struct winbindd_response *wb_resp);
52 ssize_t wb_resp_write_recv(struct tevent_req *req, int *err);
54 struct tevent_req *wb_simple_trans_send(TALLOC_CTX *mem_ctx,
55 struct tevent_context *ev,
56 struct tevent_queue *queue, int fd,
57 struct winbindd_request *wb_req);
58 int wb_simple_trans_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
59 struct winbindd_response **presponse, int *err);
61 #endif /*_WB_REQTRANS_H_*/