dd21bb9d29c019325520e91219bfe1c0a5f46cc5
[samba.git] / source / lib / dcom / common / dcom.h
1 /* 
2    Unix SMB/CIFS implementation.
3    DCOM standard objects
4    Copyright (C) Jelmer Vernooij                                          2004-2005.
5    
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 2 of the License, or
9    (at your option) any later version.
10    
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.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #ifndef _DCOM_H /* _DCOM_H */
22 #define _DCOM_H 
23
24 #include "librpc/ndr/ndr_dcom.h"
25
26 struct dcom_context 
27 {
28         struct dcom_object_exporter {
29                 struct dcom_object_exporter *prev, *next;
30                 struct STRINGARRAY resolver_address;
31                 struct DUALSTRINGARRAY bindings;
32                 uint64_t oxid;
33                 struct dcerpc_pipe *pipe;
34                 struct dcom_object
35                 {
36                         struct dcom_object *prev, *next;
37                         uint64_t oid;
38                         void *private_data;
39                 } *objects;
40         } *oxids;
41         const char *domain;
42         const char *user;
43         const char *password;
44         uint32_t dcerpc_flags;
45 };
46
47 struct dcom_interface_p
48 {
49         struct com_context *ctx;
50         const struct com_interface *interface;
51         const void *vtable; /* Points to one of the available implementations */
52         struct GUID ipid;
53         struct com_object *object;
54         int objref_flags;
55         int orpc_flags;
56         struct com_object_exporter *ox;
57         uint32_t private_references;
58 };
59
60 #endif /* _DCOM_H */