]> git.samba.org - vlendec/samba-autobuild/.git/blob - source3/rpc_server/srv_pipe_hnd.h
s3/lib: add parent_smb_fname()
[vlendec/samba-autobuild/.git] / source3 / rpc_server / srv_pipe_hnd.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *  RPC Pipe client / server routines
4  *  Copyright (C) Andrew Tridgell              1992-1998,
5  *  Largely re-written : 2005
6  *  Copyright (C) Jeremy Allison                1998 - 2005
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 3 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
20  */
21
22 #ifndef _RPC_SERVER_SRV_PIPE_HND_H_
23 #define _RPC_SERVER_SRV_PIPE_HND_H_
24
25 struct tsocket_address;
26 struct pipes_struct;
27
28 /* The following definitions come from rpc_server/srv_pipe_hnd.c  */
29
30 bool fsp_is_np(struct files_struct *fsp);
31 NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name,
32                  const struct tsocket_address *remote_client_address,
33                  const struct tsocket_address *local_server_address,
34                  struct auth_session_info *session_info,
35                  struct tevent_context *ev_ctx,
36                  struct messaging_context *msg_ctx,
37                  struct dcesrv_context *dce_ctx,
38                  struct fake_file_handle **phandle);
39 bool np_read_in_progress(struct fake_file_handle *handle);
40 struct tevent_req *np_write_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
41                                  struct fake_file_handle *handle,
42                                  const uint8_t *data, size_t len);
43 NTSTATUS np_write_recv(struct tevent_req *req, ssize_t *pnwritten);
44 struct tevent_req *np_read_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
45                                 struct fake_file_handle *handle,
46                                 uint8_t *data, size_t len);
47 NTSTATUS np_read_recv(struct tevent_req *req, ssize_t *nread,
48                       bool *is_data_outstanding);
49
50 #endif /* _RPC_SERVER_SRV_PIPE_HND_H_ */