home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff226.lzh / Vlt / xprlib / library / protolib.h < prev    next >
C/C++ Source or Header  |  1989-06-25  |  822b  |  37 lines

  1. /** protolib.h
  2. *
  3. *   DESCRIPTION:
  4. *   ===========
  5. *
  6. *    Header file for protolib.c.
  7. *
  8. **/
  9.  
  10. #include <exec/types.h>
  11. #include <exec/nodes.h>
  12. #include <exec/resident.h>
  13. #include <exec/libraries.h>
  14.  
  15. #include <functions.h>
  16.  
  17. typedef LONG (*PFL)();        /* pointer to function returning 32-bit int    */
  18.  
  19. /* library initialization table, used for AUTOINIT libraries            */
  20. struct InitTable {
  21.     ULONG    it_DataSize;    /* library data space size                    */
  22.     PFL    *it_FuncTable;    /* table of entry points                     */
  23.     APTR    it_DataInit;    /* table of data initializers                */
  24.     PFL    it_InitFunc;    /* initialization function to run            */
  25. };
  26.  
  27. struct XPRBase {
  28.     struct    Library mb_Lib;
  29.     ULONG    mb_Cookie;    /* looks good    */
  30.     ULONG    mb_SegList;
  31.     ULONG     mb_Flags;
  32.     APTR    mb_ExecBase;    /* pointer to exec base */
  33.     APTR    mb_A4;        /* proper value of A4 for aztec small model */
  34. };
  35.  
  36.  
  37.