home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Programming / MR_Classes / Dev / Source / supermodel / Libs.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-09  |  600 b   |  35 lines

  1. #include <clib/extras_protos.h>
  2. #include <extras/libs.h>
  3.  
  4. #include <proto/exec.h>
  5. #include <proto/intuition.h>
  6.  
  7. struct ExecBase       *SysBase;
  8. struct IntuitionBase  *IntuitionBase;
  9. struct Library        *UtilityBase;
  10.  
  11. struct Libs MyLibs[]=
  12. {
  13.   (APTR *)&IntuitionBase, "intuition.library",          39,     0,
  14.   (APTR *)&UtilityBase,   "utility.library",            39,     0,
  15.   0
  16. };
  17.                       
  18.  
  19. BOOL i_OpenLibs(void)
  20. {
  21.   ULONG *LongMem=0;
  22.  
  23.   SysBase=(APTR)LongMem[1];
  24.  
  25.      return(ex_OpenLibs(0, "supermodel.class", 0,0,0, MyLibs));
  26. }
  27.  
  28. void i_CloseLibs(void)
  29. {
  30.   ex_CloseLibs(MyLibs);
  31. }
  32.  
  33.  
  34.  
  35.