Use tevent_req_poll_ntstatus
[vlendec/samba-autobuild/.git] / source3 / rpc_client / rpc_client.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *
4  *  RPC Pipe client routines
5  *
6  *  Copyright (c) 2005      Jeremy Allison
7  *  Copyright (c) 2010      Simo Sorce
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 3 of the License, or
12  *  (at your option) any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
21  */
22
23
24 #ifndef _RPC_CLIENT_H
25 #define _RPC_CLIENT_H
26
27 #include "librpc/gen_ndr/dcerpc.h"
28 #include "librpc/rpc/dcerpc.h"
29 #include "../librpc/ndr/libndr.h"
30 #include "rpc_client/rpc_transport.h"
31
32 struct dcerpc_binding_handle;
33
34 struct rpc_pipe_client {
35         struct rpc_pipe_client *prev, *next;
36
37         struct rpc_cli_transport *transport;
38         struct dcerpc_binding_handle *binding_handle;
39
40         struct ndr_syntax_id abstract_syntax;
41         struct ndr_syntax_id transfer_syntax;
42         bool verified_pcontext;
43
44         char *desthost;
45         char *srv_name_slash;
46
47         uint16_t max_xmit_frag;
48         uint16_t max_recv_frag;
49
50         struct pipe_auth_data *auth;
51 };
52
53 #endif /* _RPC_CLIENT_H */