//
//   COMPONENT_NAME: somd
//
//   ORIGINS: 27
//
//
//   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
//   All Rights Reserved
//   Licensed Materials - Property of IBM
//   US Government Users Restricted Rights - Use, duplication or
//   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//
//#  @(#) 2.10 src/somd/somdom.idl, somd, som2.1 9/1/94 16:52:29 [11/1/94 20:24:39]
//   IDL interface spec for DSOM Distributed Object Manager.
// 
// 
//   This is a subclass of the abstract ObjectMgr class.
//   All ObjectMgr methods are implemented with DSOM calls.
#ifndef somdom_idl
#define somdom_idl
#include <om.idl>
interface SOMDServer;
interface SOMDObjectMgr : ObjectMgr
{
  // In addition to the basic ObjectMgr interface, the DSOM ObjectMgr
  // defines the following methods to find remote server objects:
  SOMDServer somdFindServer(in ImplId serverid);
  // Finds and returns a proxy to the Server object which is identified by the 
  // ImplId.  (ImplId is defined at server registration time, and can be 
  // obtained from the ImplDef.)
  //
  // OWNERSHIP of returned SOMDServer object is transferred to the caller.
  SOMDServer somdFindServerByName(in string servername);
  // Finds and returns a proxy to the Server object with the specified name.
  // (The name is defined at server registration time, and can be obtained
  // from the ImplDef.)
  //
  // OWNERSHIP of returned SOMDServer object is transferred to the caller.
  sequence<SOMDServer>  somdFindServersByClass(in Identifier objclass);
  // Finds all Server objects which can create an object of the named class.
  //
  // OWNERSHIP of returned SOMDServer objects is transferred to the caller.
  SOMDServer somdFindAnyServerByClass(in Identifier objclass);
  // Finds (any) Server object which can create an object of the named class.
  // (This is a specialization of the somdFindServerByClass method.)
  //
  // OWNERSHIP of returned SOMDServer object is transferred to the caller.
  attribute boolean somd21somFree;
#ifdef __SOMIDL__
  implementation
  {
    releaseorder: somdFindServer, somdFindServerByName, 
                  somdFindServersByClass, somdFindAnyServerByClass,
		  _get_somd21somFree, _set_somd21somFree;
    //# Class Modifiers
    callstyle = idl;
    dllname = "somd.dll";
    majorversion = 2;
    minorversion = 1;
    //# Method Modifiers
    somInit: override;
    somdNewObject: override;
    somdGetIdFromObject: override;
    somdGetObjectFromId: override;
    somdReleaseObject: override;
    somdDestroyObject: override;
    //# Passthrus
    passthru C_h_after =  ""
      "#ifdef SOM_STRICT_IDL"
#if defined (_WIN16)
      "#define SOMD_ObjectMgr (*SOMD_ObjectMgrResolve())"
      "SOMEXTERN SOMDObjectMgr * SOMLINK SOMD_ObjectMgrResolve(void);"
#elif defined (_WIN32)
      "#define SOMD_ObjectMgr (*resolve_SOMD_ObjectMgr())"
      "SOMEXTERN SOMDObjectMgr * resolve_SOMLINK SOMD_ObjectMgr(void);"
#else
      "SOMEXTERN SOMDObjectMgr   SOMDLINK SOMD_ObjectMgr;"
#endif
      "#else"
#if defined (_WIN16)
      "#define SOMD_ObjectMgr (*SOMD_ObjectMgrResolve())"
      "SOMEXTERN SOMDObjectMgr ** SOMLINK SOMD_ObjectMgrResolve(void);"
#elif defined (_WIN32)
      "#define SOMD_ObjectMgr (*resolve_SOMD_ObjectMgr())"
      "SOMEXTERN SOMDObjectMgr ** SOMLINK resolve_SOMD_ObjectMgr(void);"
#else
      "SOMEXTERN SOMDObjectMgr *  SOMDLINK SOMD_ObjectMgr;"
#endif
      "#endif /* SOM_STRICT_IDL */"
      ""
      "#include <somdserv.h>"
      "";
    passthru C_xh_after =  ""
#if defined (_WIN16)
      "#define SOMD_ObjectMgr (*SOMD_ObjectMgrResolve())"
      "SOMEXTERN SOMDObjectMgr ** SOMLINK SOMD_ObjectMgrResolve(void);"
#elif defined (_WIN32)
      "#define SOMD_ObjectMgr (*resolve_SOMD_ObjectMgr())"
      "SOMEXTERN SOMDObjectMgr ** SOMLINK resolve_SOMD_ObjectMgr(void);"
#else
      "SOMEXTERN SOMDObjectMgr * SOMDLINK SOMD_ObjectMgr;"
#endif
      ""
      "#include <somdserv.xh>"
      "";
  };
#endif /* __SOMIDL__ */
};
#endif  /* somdom_idl */













































































































