home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma58.dms / ma58.adf / superplay-lib_DEV / Programmers / include / spobjects / spobjectbase.h next >
C/C++ Source or Header  |  1996-05-27  |  2KB  |  74 lines

  1. /* spobjects/spobjectbase.h        */
  2. /* Version    : 1.2            */
  3. /* Date       : 18.01.1994        */
  4. /* Written by : Andreas R. Kleinert */
  5.  
  6. #ifndef SPOBJECTS_SPOBJECTBASE_H
  7. #define SPOBJECTS_SPOBJECTBASE_H
  8.  
  9. #ifndef SPOBJECTS_SPOBJECTS_H
  10. #include <spobjects/spobjects.h>
  11. #endif /* SPOBJECTS_SPOBJECTS_H */
  12.  
  13. #ifndef EXEC_LISTS
  14. #include <exec/lists.h>
  15. #endif /* EXEC_LISTS */
  16.  
  17. #ifndef EXEC_LIBRARIES
  18. #include <exec/libraries.h>
  19. #endif /* EXEC_LIBRARIES_H */
  20.  
  21.    /* An external support-library for the superplay.library is called a
  22.       "spobject".
  23.       Each spobject has to contain a "SPO_ObjectNode" structure (as follows)
  24.       in its Library-Header, which later will be READ and MODIFIED by
  25.       the superplay.library.
  26.       Because the superplay.library supports three different sorts
  27.       of SPObjects at the time (internal, independent and external),
  28.       there are three different types of this structure (might be more in
  29.       the future), which can be identified via their "spo_ObjectType".
  30.    */
  31.  
  32.    /* The Construction of a spobject :
  33.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34.  
  35.       The Library Base
  36.       ----------------
  37.  
  38.       Version MUST be 1 yet, Revision can be set freely
  39.  
  40.       (see structure described below)
  41.  
  42.  
  43.       The Function Table
  44.       ------------------
  45.  
  46.       (see <pragmas/spobjects.h> or Reference_ENG.doc)
  47.  
  48.    */
  49.  
  50. /* *************************************************** */
  51. /* *                             * */
  52. /* * Library base Definition for spobjects         * */
  53. /* *                             * */
  54. /* *************************************************** */
  55.  
  56. struct SPObjectBase
  57. {
  58.  struct Library     spb_LibNode;       /* Exec LibNode             */
  59.  struct SPO_ObjectNode *spb_SPObject;       /* POINTER to initialized         */
  60.                        /* SPO_ObjectNode             */
  61.                        /* Define it somewhere else,      */
  62.                        /* then initialize this pointer.  */
  63.  
  64.  ULONG            spb_Reserved [32]; /* Reserved for future expansion. */
  65.                        /* Always NULL yet (Version 1).   */
  66.  
  67.  /*
  68.    Private data of the spobject, not to be accessed
  69.    by superplay.library, may follow.
  70.  */
  71. };
  72.  
  73. #endif /* SPOBJECTS_SPOBJECTBASE_H */
  74.