2 Unix SMB/CIFS implementation.
3 Utility functions for Samba
4 Copyright (C) Jelmer Vernooij 2008
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 __SAMBA_COM_H__
21 #define __SAMBA_COM_H__
23 #include "librpc/gen_ndr/misc.h"
26 struct tevent_context
;
30 struct dcom_client_context
*dcom
;
31 struct tevent_context
*event_ctx
;
32 struct com_extension
{
35 struct com_extension
*prev
, *next
;
37 struct loadparm_context
*lp_ctx
;
40 struct IUnknown
*com_class_by_clsid(struct com_context
*ctx
, const struct GUID
*clsid
);
41 NTSTATUS
com_register_running_class(struct GUID
*clsid
, const char *progid
, struct IUnknown
*p
);
43 struct dcom_interface_p
*dcom_get_local_iface_p(struct GUID
*ipid
);
45 WERROR
com_init_ctx(struct com_context
**ctx
, struct tevent_context
*event_ctx
);
46 WERROR
com_create_object(struct com_context
*ctx
, struct GUID
*clsid
, int num_ifaces
, struct GUID
*iid
, struct IUnknown
**ip
, WERROR
*results
);
47 WERROR
com_get_class_object(struct com_context
*ctx
, struct GUID
*clsid
, struct GUID
*iid
, struct IUnknown
**ip
);
48 NTSTATUS
com_init(void);
50 typedef struct IUnknown
*(*get_class_object_function
) (const struct GUID
*clsid
);
52 #endif /* __SAMBA_COM_H__ */