home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / BntoInit.cpp < prev    next >
C/C++ Source or Header  |  1997-03-21  |  3KB  |  103 lines

  1. /* @(#)Z 1.2 com/src/bento/BntoInit.cpp, odstorage, od96os2, odos29712d 97/03/21 17:19:02 (96/07/15 18:16:27) */
  2. //====START_GENERATED_PROLOG======================================
  3. //
  4. //
  5. //   COMPONENT_NAME: odstorage
  6. //
  7. //   CLASSES: none
  8. //
  9. //   ORIGINS: 82,27
  10. //
  11. //
  12. //   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //   All Rights Reserved
  14. //   Licensed Materials - Property of IBM
  15. //   US Government Users Restricted Rights - Use, duplication or
  16. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //       
  18. //   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //   OR PERFORMANCE OF THIS SOFTWARE.
  25. //
  26. //====END_GENERATED_PROLOG========================================
  27. //
  28. /*
  29.     File:        BntoInit.cpp
  30.  
  31.     Contains:    Init routines for the Bento shared library
  32.  
  33.     Owned by:    Vincent Lo
  34.  
  35.     Copyright:    ⌐ 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  36.  
  37.     Change History (most recent first):
  38.  
  39.         <11>     9/29/95    TJ        Made Changes for MAC SOM
  40.         <10>     5/26/95    VL        1251403: Multithreading naming support.
  41.          <9>     4/29/95    Té        1244775 Warning when compiling BntoInit.cpp
  42.          <8>     2/10/95    VL        1205627: Added ODBentoUpdateContainer.
  43.          <7>     1/12/95    jpa        Don't use obsolete Toolbox names [1211211]
  44.          <6>    11/17/94    CG        #1181489: Uncommented implementation of
  45.                                     BentoSOMInit.
  46.          <5>     9/29/94    RA        1189812: Mods for 68K build.
  47.          <4>     8/19/94    NP        1181622: Ownership fix.
  48.          <3>     8/17/94    CG        #1181489: Made ready for Container Suite
  49.                                     instantiation by name.
  50.          <2>     7/19/94    VL        Added InitLibraryResources and changed
  51.                                     DebugStr to somPrintf.
  52.          <1>     6/23/94    NP        first checked in
  53.          <1>      5/5/94    NP        first checked in
  54.  
  55.     To Do:
  56. */
  57.  
  58.  
  59. #ifndef __USERSRCM__
  60. #include "UseRsrcM.h"
  61. #endif
  62.  
  63. #ifndef SOM_ODFileContainer_xh
  64. #include <FileCtr.xh>
  65. #endif
  66.  
  67. #ifndef SOM_ODEmbeddedContainer_xh
  68. #include <EmbedCtr.xh>
  69. #endif
  70.  
  71. #ifndef SOM_ODMemContainer_xh
  72. #include <MemCtr.xh>
  73. #endif
  74.  
  75. #ifndef SOM_ODUpdateContainer_xh
  76. #include <UpdatCtr.xh>
  77. #endif
  78.  
  79. void BentoInit ( );
  80.                                        
  81. void BentoInit ( )
  82. {
  83.     //somPrintf("In BentoSOMInit!");
  84.  
  85.     somNewClass ( ODFileContainer );
  86.     somNewClass ( ODEmbeddedContainer );
  87.     somNewClass ( ODMemContainer );
  88.     somNewClass ( ODUpdateContainer );
  89.     //ODFileContainerNewClass(majorVersion, minorVersion);
  90.     //ODEmbeddedContainerNewClass(majorVersion, minorVersion);
  91.     //ODMemContainerNewClass(majorVersion, minorVersion);
  92.     //ODUpdateContainerNewClass(majorVersion, minorVersion);
  93.  
  94. } /* SOMInitModule () */
  95.  
  96. extern "C" pascal OSErr BentoCFMInit( CFragInitBlockPtr );
  97.  
  98. pascal OSErr BentoCFMInit (CFragInitBlockPtr initBlkPtr)
  99. {
  100.     return InitLibraryResources(initBlkPtr);
  101. }
  102.  
  103.