2 Unix SMB/CIFS implementation.
3 Headers for the async winbind client library
4 Copyright (C) Kai Blin 2009
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #include "nsswitch/libwbclient/wbclient.h"
27 struct tevent_req
*wb_trans_send(TALLOC_CTX
*mem_ctx
,
28 struct tevent_context
*ev
,
29 struct wb_context
*wb_ctx
, bool need_priv
,
30 struct winbindd_request
*wb_req
);
31 wbcErr
wb_trans_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
32 struct winbindd_response
**presponse
);
33 struct wb_context
*wb_context_init(TALLOC_CTX
*mem_ctx
);
35 /* Definitions from wb_reqtrans.c */
36 bool async_req_is_wbcerr(struct async_req
*req
, wbcErr
*pwbc_err
);
37 wbcErr
map_wbc_err_from_errno(int error
);
38 wbcErr
async_req_simple_recv_wbcerr(struct async_req
*req
);
40 bool tevent_req_is_wbcerr(struct tevent_req
*req
, wbcErr
*pwbc_err
);
41 wbcErr
tevent_req_simple_recv_wbcerr(struct tevent_req
*req
);
43 struct tevent_req
*wb_req_read_send(TALLOC_CTX
*mem_ctx
,
44 struct tevent_context
*ev
,
45 int fd
, size_t max_extra_data
);
46 wbcErr
wb_req_read_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
47 struct winbindd_request
**preq
);
49 struct tevent_req
*wb_req_write_send(TALLOC_CTX
*mem_ctx
,
50 struct tevent_context
*ev
,
51 struct tevent_queue
*queue
, int fd
,
52 struct winbindd_request
*wb_req
);
53 wbcErr
wb_req_write_recv(struct tevent_req
*req
);
55 struct tevent_req
*wb_resp_read_send(TALLOC_CTX
*mem_ctx
,
56 struct tevent_context
*ev
, int fd
);
57 wbcErr
wb_resp_read_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
58 struct winbindd_response
**presp
);
60 struct tevent_req
*wb_resp_write_send(TALLOC_CTX
*mem_ctx
,
61 struct tevent_context
*ev
,
62 struct tevent_queue
*queue
, int fd
,
63 struct winbindd_response
*wb_resp
);
64 wbcErr
wb_resp_write_recv(struct tevent_req
*req
);
66 #endif /*_WBC_ASYNC_H_*/