home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / Devcon_Extras / Example_Code / SampleLibrary / include / samplebase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  753 b   |  43 lines

  1. /*
  2.  *
  3.  * samplebase.h -- C include file defining sample.library base
  4.  *
  5.  * Copyright (C) 1985, 1988 Commodore Amiga Inc.  All rights reserved.
  6.  *
  7.  */
  8.  
  9. #ifndef SAMPLE_BASE_H
  10. #define SAMPLE_BASE_H
  11.  
  12. #ifndef  EXEC_TYPES_H
  13. #include  <exec/types.h>
  14. #endif   EXEC_TYPES_H
  15.  
  16. #ifndef  EXEC_LISTS_H
  17. #include  <exec/lists.h>
  18. #endif   EXEC_LISTS_H
  19.  
  20. #ifndef  EXEC_LIBRARIES_H
  21. #include <exec/libraries.h>
  22. #endif   EXEC_LIBRARIES_H
  23.  
  24. /* library data structures
  25.  *
  26.  *  Note that the library base begins with a library node
  27.  */
  28.  
  29. struct SampleBase {
  30.    struct Library LibNode;
  31.    UBYTE  Flags;
  32.    UBYTE  pad;
  33.    /* We are now longword aligned */
  34.    ULONG  SysLib;
  35.    ULONG  DosLib;
  36.    ULONG  SegList;
  37.    };
  38.  
  39.  
  40. #define SAMPLENAME   "sample.library"
  41.  
  42. #endif EXEC_SAMPLEBASE_H
  43.