s3: smbd: Make extract_snapshot_token() a wrapper for extract_snapshot_token_internal().
[Samba.git] / source3 / rpc_server / rpc_server.h
blob73cd78ac6a419891eb2cf1cd35e1cc9aceccb43a
1 /*
2 * RPC Server helper headers
3 * Almost completely rewritten by (C) Jeremy Allison 2005 - 2010
4 * Copyright (C) Simo Sorce <idra@samba.org> - 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_SERVER_H_
21 #define _RPC_SERVER_H_
23 #include "librpc/rpc/rpc_common.h" /* For enum dcerpc_transport_t */
25 #include "librpc/rpc/dcesrv_core.h"
26 #include "rpc_pipes.h"
28 struct auth_session_info;
29 struct cli_credentials;
31 typedef void (*dcerpc_ncacn_termination_fn)(struct dcesrv_connection *,
32 void *);
34 struct dcerpc_ncacn_conn {
35 struct dcerpc_ncacn_conn *prev, *next;
36 int sock;
38 struct pipes_struct p;
39 dcerpc_ncacn_termination_fn termination_fn;
40 void *termination_data;
42 struct dcesrv_endpoint *endpoint;
44 char *remote_client_name;
45 char *local_server_name;
48 void set_incoming_fault(struct pipes_struct *p);
49 void process_complete_pdu(struct pipes_struct *p, struct ncacn_packet *pkt);
51 NTSTATUS dcesrv_auth_gensec_prepare(
52 TALLOC_CTX *mem_ctx,
53 struct dcesrv_call_state *call,
54 struct gensec_security **out,
55 void *private_data);
56 void dcesrv_log_successful_authz(
57 struct dcesrv_call_state *call,
58 void *private_data);
59 NTSTATUS dcesrv_assoc_group_find(
60 struct dcesrv_call_state *call,
61 void *private_data);
63 NTSTATUS dcesrv_endpoint_by_ncacn_np_name(struct dcesrv_context *dce_ctx,
64 const char *endpoint,
65 struct dcesrv_endpoint **out);
67 struct pipes_struct *dcesrv_get_pipes_struct(struct dcesrv_connection *conn);
69 void dcesrv_transport_terminate_connection(struct dcesrv_connection *dce_conn,
70 const char *reason);
72 #endif /* _PRC_SERVER_H_ */