home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / ODSTORB.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  84 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15.  
  16. #ifndef _STORAGEB_
  17. #define _STORAGEB_
  18.  
  19. #ifndef _ODOBJECT_
  20. #include "ODObject.idl"
  21. #endif
  22.  
  23. //==============================================================================
  24. // Classes defined in this interface
  25. //==============================================================================
  26.  
  27. interface   ODBaseStorageSystem;
  28.  
  29. //==============================================================================
  30. // Classes used in this interface
  31. //==============================================================================
  32.  
  33. interface   ODSession;
  34. interface   ODContainer;
  35. interface   ODTypeList;
  36. interface   ODPlatformTypeList;
  37.  
  38. //==============================================================================
  39. // ODBaseStorageSystem
  40. //==============================================================================
  41.  
  42. interface ODBaseStorageSystem :   ODObject   
  43. {
  44.   ODSession GetSession();
  45.  
  46.   ODContainer AcquireContainer(in ODContainerType containerType,
  47.                 in ODContainerID id);
  48.  
  49.   ODContainer CreateContainer(in ODContainerType containerType,
  50.                   in ODContainerID id);
  51.  
  52.   void NeedSpace(in ODSize memSize,
  53.           in ODBoolean doPurge);
  54.  
  55.   ODTypeList  CreateTypeList(in ODTypeList typeList);
  56.  
  57.   ODPlatformTypeList  CreatePlatformTypeList(in ODPlatformTypeList typeList);
  58.  
  59.  
  60. #ifdef __SOMIDL__
  61.   implementation
  62.   {
  63.       functionprefix = ODBaseStorageSystem;
  64.  
  65.     override:
  66.       somInit,
  67.       somUninit,
  68.       Purge;
  69.     releaseorder:
  70.       GetSession,
  71.       AcquireContainer,
  72.       CreateContainer,
  73.       NeedSpace,
  74.       CreateTypeList,
  75.       CreatePlatformTypeList,
  76.       reserved1,
  77.       reserved2,
  78.       reserved3;
  79.   };
  80. #endif
  81. };
  82.  
  83. #endif  // _STORAGEB_
  84.