home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / xlib / libs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-12-07  |  722 b   |  36 lines

  1. /* 
  2.     Definitions for shared library support 
  3.     written November, 1987
  4.     by Preston L. Bannister
  5. */
  6.  
  7. #define LIBSUPPORT_NAME        "LibSupport"
  8. #define LIBSUPPORT_VERSION    1
  9.  
  10. #define LIB_FIND_VECTOR    0x200
  11. #define LIB_ADD_VECTOR    0x201
  12.  
  13. typedef long (*Procedure)();
  14. typedef Procedure * Library;
  15. typedef Library (*GetLibraryFunction)();
  16.  
  17. typedef struct _LibLink {
  18.   struct _LibLink *next;
  19.   char *name;
  20.   int version;
  21.   GetLibraryFunction entrance;
  22. } LibLink;
  23.  
  24. extern Library LibSupportBase;
  25.  
  26. extern void InstallLibrary(/*lib,keep*/);
  27. extern int  InitLibSupport();
  28.  
  29. #ifndef LIBSUPPORT_IMPLEMENTATION
  30.  
  31. #define AddLibrary    (*LibSupportBase[0])
  32. #define FindLibrary    (*LibSupportBase[1])
  33. #define ForEachLibrary    (*LibSupportBase[2])
  34.  
  35. #endif
  36.