home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SOM / INCLUDE / IMPLDEF.IDL < prev    next >
Text File  |  1995-08-24  |  3KB  |  83 lines

  1. //
  2. //   COMPONENT_NAME: somd
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13. //  CLASS SPECIFICATION FOR IMPLEMENTATION DEFINITION
  14. #ifndef impldef_idl
  15. #define impldef_idl
  16. #include <somobj.idl>
  17. #include <somdtype.idl>
  18. interface ImplementationDef : SOMObject
  19. {
  20.   // ImplementationDef attributes
  21.   attribute string        impl_id;
  22.   attribute string        impl_alias;
  23.   attribute string impl_program;
  24.   attribute Flags  impl_flags;
  25.   attribute string impl_server_class;
  26.   attribute string impl_refdata_file;
  27.   attribute string impl_refdata_bkup;
  28.   attribute string impl_hostname;
  29. #ifdef __SOMIDL__
  30.   implementation
  31.   {
  32.     releaseorder: _set_impl_id,           _get_impl_id,
  33.                   _set_impl_alias,        _get_impl_alias,
  34.                   _set_impl_program,      _get_impl_program,
  35.                   _set_impl_flags,        _get_impl_flags,
  36.                   _set_impl_server_class, _get_impl_server_class,
  37.                   _set_impl_socket_class, _get_impl_socket_class,
  38.                   _set_impl_refdata_file, _get_impl_refdata_file,
  39.                   _set_impl_refdata_bkup, _get_impl_refdata_bkup,
  40.                   _set_impl_hostname,     _get_impl_hostname,
  41.                   _set_impl_def_struct,   _get_impl_def_struct;
  42.     callstyle = idl;
  43.     dllname = "somd.dll";
  44.     majorversion = 2;
  45.     minorversion = 1;
  46.     #define COMMON_H_PASSTHRU \
  47.       "" \
  48.       "/* flags */"               \
  49.       "#define IMPLDEF_MULTI_THREAD  0x00000001" \
  50.       "#define IMPLDEF_POOL_THREAD   0x00000002" \
  51.       "#define IMPLDEF_DISABLE_SVR   0x00000004" \
  52.       "#define IMPLDEF_IMPLID_SET    0x00000008" \
  53.       ""
  54.     passthru C_h_after  = COMMON_H_PASSTHRU
  55.       "#ifdef SOM_STRICT_IDL"
  56. #ifdef _WIN16
  57.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  58.       "SOMEXTERN ImplementationDef * SOMLINK SOMD_ImplDefObjectResolve(void);"
  59. #else
  60.       "SOMEXTERN ImplementationDef  SOMDLINK SOMD_ImplDefObject;"
  61. #endif
  62.       "#else"
  63. #ifdef _WIN16
  64.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  65.       "SOMEXTERN ImplementationDef ** SOMLINK SOMD_ImplDefObjectResolve(void);"
  66. #else
  67.       "SOMEXTERN ImplementationDef*  SOMDLINK SOMD_ImplDefObject;"
  68. #endif
  69.       "#endif /* SOM_STRICT_IDL */"
  70.       "";
  71.     passthru C_xh_after = COMMON_H_PASSTHRU
  72. #ifdef _WIN16
  73.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  74.       "SOMEXTERN ImplementationDef ** SOMLINK SOMD_ImplDefObjectResolve(void);"
  75. #else
  76.       "SOMEXTERN ImplementationDef* SOMDLINK SOMD_ImplDefObject;"
  77. #endif
  78.       "";
  79. };
  80. #endif /* __SOMIDL__ */
  81. };
  82. #endif  /* impldef_idl */
  83.