root/source4/lib/com/com.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* 
   2    Unix SMB/CIFS implementation.
   3    Utility functions for Samba
   4    Copyright (C) Jelmer Vernooij 2008
   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 3 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, see <http://www.gnu.org/licenses/>.
  18 */
  19 
  20 #ifndef __SAMBA_COM_H__
  21 #define __SAMBA_COM_H__
  22 
  23 #include "librpc/gen_ndr/misc.h"
  24 
  25 struct com_context;
  26 struct tevent_context;
  27 
  28 struct com_context 
  29 {
  30         struct dcom_client_context *dcom;
  31         struct tevent_context *event_ctx;
  32         struct com_extension {
  33                 uint32_t id;
  34                 void *data;
  35                 struct com_extension *prev, *next;
  36         } *extensions;
  37         struct loadparm_context *lp_ctx;
  38 };
  39 
  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);
  42 
  43 struct dcom_interface_p *dcom_get_local_iface_p(struct GUID *ipid);
  44 
  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);
  49 
  50 typedef struct IUnknown *(*get_class_object_function) (const struct GUID *clsid);
  51 
  52 #endif /* __SAMBA_COM_H__ */

/* [<][>][^][v][top][bottom][index][help] */