winbindd: assert wb_parent_idmap_setup_send/recv() was called before idmap_child_handle()
[Samba.git] / source3 / rpc_server / rpc_ncacn_np.h
blob25565f521598253384f059f71b42259091a892b7
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 dcerpc_binding_handle;
24 struct ndr_interface_table;
25 struct tsocket_address;
26 struct dcesrv_context;
27 struct dcesrv_endpoint;
29 struct npa_state {
30 struct tstream_context *stream;
32 struct tevent_queue *read_queue;
33 struct tevent_queue *write_queue;
35 uint64_t allocation_size;
36 uint16_t device_state;
37 uint16_t file_type;
39 void *private_data;
42 NTSTATUS make_external_rpc_pipe(TALLOC_CTX *mem_ctx,
43 const char *pipe_name,
44 const struct tsocket_address *remote_client_address,
45 const struct tsocket_address *local_server_address,
46 const struct auth_session_info *session_info,
47 struct npa_state **pnpa);
49 NTSTATUS make_internal_rpc_pipe_socketpair(
50 TALLOC_CTX *mem_ctx,
51 struct tevent_context *ev_ctx,
52 struct messaging_context *msg_ctx,
53 struct dcesrv_context *dce_ctx,
54 struct dcesrv_endpoint *endpoint,
55 const struct tsocket_address *remote_address,
56 const struct tsocket_address *local_address,
57 const struct auth_session_info *session_info,
58 struct npa_state **pnpa);
60 NTSTATUS rpcint_binding_handle(TALLOC_CTX *mem_ctx,
61 const struct ndr_interface_table *ndr_table,
62 const struct tsocket_address *remote_address,
63 const struct tsocket_address *local_address,
64 const struct auth_session_info *session_info,
65 struct messaging_context *msg_ctx,
66 struct dcerpc_binding_handle **binding_handle);
67 NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx,
68 const struct ndr_interface_table *table,
69 const struct auth_session_info *session_info,
70 const struct tsocket_address *remote_address,
71 const struct tsocket_address *local_address,
72 struct messaging_context *msg_ctx,
73 struct rpc_pipe_client **cli_pipe);
75 NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx,
76 const struct ndr_interface_table *ndr_table,
77 const struct auth_session_info *session_info,
78 const struct tsocket_address *remote_address,
79 const struct tsocket_address *local_address,
80 struct messaging_context *msg_ctx,
81 struct rpc_pipe_client **presult);
83 #endif /* _RPC_NCACN_NP_H_ */