s3:libsmb: add tstream_is_cli_np()
[Samba/gebeck_regimport.git] / source3 / rpc_server / rpc_ncacn_np.h
blob747e4b6eba9f3751e4d07b24ee8b00fe50948cd6
1 /*
2 Unix SMB/Netbios implementation.
3 RPC Server Headers
4 Copyright (C) Simo Sorce 2010
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/>.
20 #ifndef _RPC_NCACN_NP_H_
21 #define _RPC_NCACN_NP_H_
23 struct np_proxy_state {
24 uint16_t file_type;
25 uint16_t device_state;
26 uint64_t allocation_size;
27 struct tstream_context *npipe;
28 struct tevent_queue *read_queue;
29 struct tevent_queue *write_queue;
32 struct pipes_struct *make_internal_rpc_pipe_p(TALLOC_CTX *mem_ctx,
33 const struct ndr_syntax_id *syntax,
34 struct client_address *client_id,
35 const struct auth_serversupplied_info *server_info,
36 struct messaging_context *msg_ctx);
37 struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx,
38 const char *pipe_name,
39 const struct tsocket_address *local_address,
40 const struct tsocket_address *remote_address,
41 const struct auth_serversupplied_info *server_info);
42 NTSTATUS rpcint_binding_handle(TALLOC_CTX *mem_ctx,
43 const struct ndr_interface_table *ndr_table,
44 struct client_address *client_id,
45 const struct auth_serversupplied_info *server_info,
46 struct messaging_context *msg_ctx,
47 struct dcerpc_binding_handle **binding_handle);
48 NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx,
49 const struct ndr_syntax_id *abstract_syntax,
50 const struct auth_serversupplied_info *serversupplied_info,
51 struct client_address *client_id,
52 struct messaging_context *msg_ctx,
53 struct rpc_pipe_client **presult);
54 NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx,
55 const struct ndr_syntax_id *syntax,
56 const struct auth_serversupplied_info *server_info,
57 struct client_address *client_id,
58 struct messaging_context *msg_ctx,
59 struct rpc_pipe_client **cli_pipe);
61 #endif /* _RPC_NCACN_NP_H_ */