home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Storage / Bento / BntoInit.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  1.9 KB  |  76 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        BntoInit.cpp
  3.  
  4.     Contains:    Init routines for the Bento shared library
  5.  
  6.     Owned by:    Vincent Lo
  7.  
  8.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <11>     9/29/95    TJ        Made Changes for MAC SOM
  13.         <10>     5/26/95    VL        1251403: Multithreading naming support.
  14.          <9>     4/29/95    TÇ        1244775 Warning when compiling BntoInit.cpp
  15.          <8>     2/10/95    VL        1205627: Added ODBentoUpdateContainer.
  16.          <7>     1/12/95    jpa        Don't use obsolete Toolbox names [1211211]
  17.          <6>    11/17/94    CG        #1181489: Uncommented implementation of
  18.                                     BentoSOMInit.
  19.          <5>     9/29/94    RA        1189812: Mods for 68K build.
  20.          <4>     8/19/94    NP        1181622: Ownership fix.
  21.          <3>     8/17/94    CG        #1181489: Made ready for Container Suite
  22.                                     instantiation by name.
  23.          <2>     7/19/94    VL        Added InitLibraryResources and changed
  24.                                     DebugStr to somPrintf.
  25.          <1>     6/23/94    NP        first checked in
  26.          <1>      5/5/94    NP        first checked in
  27.  
  28.     To Do:
  29. */
  30.  
  31.  
  32. #ifndef __USERSRCM__
  33. #include "UseRsrcM.h"
  34. #endif
  35.  
  36. #ifndef SOM_ODFileContainer_xh
  37. #include <FileCtr.xh>
  38. #endif
  39.  
  40. #ifndef SOM_ODEmbeddedContainer_xh
  41. #include <EmbedCtr.xh>
  42. #endif
  43.  
  44. #ifndef SOM_ODMemContainer_xh
  45. #include <MemCtr.xh>
  46. #endif
  47.  
  48. #ifndef SOM_ODUpdateContainer_xh
  49. #include <UpdatCtr.xh>
  50. #endif
  51.  
  52. void BentoInit ( );
  53.                                        
  54. void BentoInit ( )
  55. {
  56.     //somPrintf("In BentoSOMInit!");
  57.  
  58.     somNewClass ( ODFileContainer );
  59.     somNewClass ( ODEmbeddedContainer );
  60.     somNewClass ( ODMemContainer );
  61.     somNewClass ( ODUpdateContainer );
  62.     //ODFileContainerNewClass(majorVersion, minorVersion);
  63.     //ODEmbeddedContainerNewClass(majorVersion, minorVersion);
  64.     //ODMemContainerNewClass(majorVersion, minorVersion);
  65.     //ODUpdateContainerNewClass(majorVersion, minorVersion);
  66.  
  67. } /* SOMInitModule () */
  68.  
  69. extern "C" pascal OSErr BentoCFMInit( CFragInitBlockPtr );
  70.  
  71. pascal OSErr BentoCFMInit (CFragInitBlockPtr initBlkPtr)
  72. {
  73.     return InitLibraryResources(initBlkPtr);
  74. }
  75.  
  76.