Add simple implementation of several functions in the Samba 4 RPC
[kai/samba.git] / source / librpc / rpc / dcerpc.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    DCERPC client side interface structures
5
6    Copyright (C) 2008 Jelmer Vernooij
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 /* This is a public header file that is installed as part of Samba. 
23  * If you remove any functions or change their signature, update 
24  * the so version number. */
25
26 #ifndef __DCERPC_H__
27 #define __DCERPC_H__
28
29 #include "includes.h"
30 #include "librpc/rpc/dcerpc.h"
31 #include "librpc/gen_ndr/epmapper.h"
32
33 struct loadparm_context;
34 struct cli_credentials;
35
36 struct dcerpc_pipe {
37         const struct ndr_interface_table *table;
38         struct rpc_pipe_client *cli;
39 };
40
41 struct rpc_request {
42         const struct ndr_interface_call *call;
43         prs_struct q_ps;
44         uint32_t opnum;
45         struct dcerpc_pipe *pipe;
46         void *r;
47 };
48
49 enum dcerpc_transport_t {
50         NCA_UNKNOWN, NCACN_NP, NCACN_IP_TCP, NCACN_IP_UDP, NCACN_VNS_IPC, 
51         NCACN_VNS_SPP, NCACN_AT_DSP, NCADG_AT_DDP, NCALRPC, NCACN_UNIX_STREAM, 
52         NCADG_UNIX_DGRAM, NCACN_HTTP, NCADG_IPX, NCACN_SPX };
53
54
55 /* this describes a binding to a particular transport/pipe */
56 struct dcerpc_binding {
57         enum dcerpc_transport_t transport;
58         struct ndr_syntax_id object;
59         const char *host;
60         const char *target_hostname;
61         const char *endpoint;
62         const char **options;
63         uint32_t flags;
64         uint32_t assoc_group_id;
65 };
66
67
68
69
70 #endif /* __DCERPC_H__ */