util:datablob: data_blob_pad checks its alignment assumption
[samba.git] / source3 / rpc_client / local_np.h
blob093faad151cfffe9a4f2960f918519061e2531e1
1 /*
2 * Unix SMB/CIFS implementation.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef _LOCAL_NP_H_
19 #define _LOCAL_NP_H_
21 #include <replace.h>
22 #include "lib/tsocket/tsocket.h"
23 #include "librpc/rpc/rpc_common.h"
25 struct auth_session_info;
27 struct tevent_req *local_np_connect_send(
28 TALLOC_CTX *mem_ctx,
29 struct tevent_context *ev,
30 const char *pipename,
31 enum dcerpc_transport_t transport,
32 const char *remote_client_name,
33 const struct tsocket_address *remote_client_addr,
34 const char *local_server_name,
35 const struct tsocket_address *local_server_addr,
36 const struct auth_session_info *session_info,
37 bool need_idle_server);
39 int local_np_connect_recv(
40 struct tevent_req *req,
41 TALLOC_CTX *mem_ctx,
42 struct tstream_context **pstream);
44 int local_np_connect(
45 const char *pipename,
46 enum dcerpc_transport_t transport,
47 const char *remote_client_name,
48 const struct tsocket_address *remote_client_addr,
49 const char *local_server_name,
50 const struct tsocket_address *local_server_addr,
51 const struct auth_session_info *session_info,
52 bool need_idle_server,
53 TALLOC_CTX *mem_ctx,
54 struct tstream_context **stream);
56 #endif /* _LOCAL_NP_H_ */