home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / show / superview-lib / programmers / include / superview / superview.h next >
Encoding:
C/C++ Source or Header  |  1995-05-28  |  5.5 KB  |  184 lines

  1. /* superview/superview.h        */
  2. /* Version    : 11.1             */
  3. /* Date       : 11.03.1995        */
  4. /* Written by : Andreas R. Kleinert */
  5.  
  6. #ifndef SUPERVIEW_SUPERVIEW_H
  7. #define SUPERVIEW_SUPERVIEW_H
  8.  
  9.  
  10. /* *************************************************** */
  11. /* *                             * */
  12. /* * Version Defines                     * */
  13. /* *                             * */
  14. /* *************************************************** */
  15.  
  16. #define SVLIB_VERSION  11   /* just for info, should not be used anywhere */
  17.  
  18.  
  19. /* *************************************************** */
  20. /* *                             * */
  21. /* * Includes                         * */
  22. /* *                             * */
  23. /* *************************************************** */
  24.  
  25. #ifndef EXEC_TYPES_H
  26. #include <exec/types.h>
  27. #endif /* EXEC_TYPES_H */
  28.  
  29. #ifndef EXEC_LISTS_H
  30. #include <exec/lists.h>
  31. #endif /* EXEC_LISTS_H */
  32.  
  33. #ifndef LIBRARIES_DOS_H
  34. #include <libraries/dos.h>
  35. #endif /* LIBRARIES_DOS_H */
  36.  
  37. #ifndef _STDIO_H
  38. #include <stdio.h>
  39. #endif /* _STDIO_H */
  40.  
  41. #ifndef _STDLIB_H
  42. #include <stdlib.h>
  43. #endif /* _STDLIB_H */
  44.  
  45. #ifndef _STRING_H
  46. #include <string.h>
  47. #endif /* _STRING_H */
  48.  
  49. #ifndef SUPERVIEW_SVINFO_H
  50. #include <superview/svinfo.h>
  51. #endif /* SUPERVIEW_SVINFO_H */
  52.  
  53. #ifndef SUPERVIEW_SVGFXBUFFER_H
  54. #include <superview/svgfxbuffer.h>
  55. #endif /* SUPERVIEW_SVGFXBUFFER_H */
  56.  
  57.  
  58. /* *************************************************** */
  59. /* *                             * */
  60. /* * Custom Defines                     * */
  61. /* *                             * */
  62. /* *************************************************** */
  63.  
  64. #ifndef N
  65. #define N NULL     /* useful */
  66. #endif /* N */
  67.  
  68.  
  69. /* *************************************************** */
  70. /* *                             * */
  71. /* * MACROs for Version-Tests                 * */
  72. /* *                             * */
  73. /* *************************************************** */
  74.  
  75. #define LibVer(x) ( ((struct Library *) x)->lib_Version )
  76. #define OS_VER      LibVer(SysBase)
  77.  
  78.  
  79. /* *************************************************** */
  80. /* *                             * */
  81. /* * DEFINES                         * */
  82. /* *                             * */
  83. /* *************************************************** */
  84.  
  85.  
  86. /* Possible FileTypes */
  87.  
  88. #define SV_FILETYPE_NONE     ((ULONG) 0)
  89. #define SV_FILETYPE_UNKNOWN  SV_FILETYPE_NONE
  90. #define SV_FILETYPE_ILLEGAL  ((ULONG) 0xFFFFFFFF)
  91.  
  92. #define SV_FILETYPE_ILBM     ((ULONG) 1)          /* IFF-ILBM, any derivat   */
  93. #define SV_FILETYPE_ACBM     ((ULONG) 2)          /* IFF-ACBM, any derivat   */
  94. #define SV_FILETYPE_DATATYPE ((ULONG) 3)          /* V39-Datatype-Object     */
  95.  
  96.      /*
  97.     up to here  : Constant codes for IFF-ILBM, IFF-ACBM and DataTypes
  98.               (constant for compatibility reasons).
  99.     above these : External, user defined FileSubTypes
  100.               (defined EACH TIME NEW at Library's startup-time).
  101.      */
  102.  
  103.  
  104. /* Possible SubTypes of FileTypes */
  105.  
  106. #define SV_SUBTYPE_NONE     ((ULONG) 0)
  107. #define SV_SUBTYPE_UNKNOWN  SV_SUBTYPE_NONE
  108. #define SV_SUBTYPE_ILLEGAL  ((ULONG) 0xFFFFFFFF)
  109.  
  110. #define SV_SUBTYPE_ILBM     ((ULONG) 1)          /* Is IFF-ILBM              */
  111. #define SV_SUBTYPE_ILBM_01  ((ULONG) 2)          /* Is IFF-ILBM, CmpByteRun1 */
  112. #define SV_SUBTYPE_ACBM     ((ULONG) 3)          /* Is IFF-ACBM              */
  113. #define SV_SUBTYPE_DATATYPE ((ULONG) 4)          /* Is V39-DataType-Object   */
  114.  
  115.      /*
  116.     up to here  : Constant codes for IFF-ILBM, IFF-ACBM and DataTypes
  117.               (constant for compatibility reasons).
  118.     above these : External, user defined FileSubTypes
  119.               (defined EACH TIME NEW at Library's startup-time).
  120.      */
  121.  
  122.  
  123.   /* You should not write code, which depends on the presence of any
  124.      of the above file(sub)type definitions, since even the older ones
  125.      aren't guaranted to be present (although the defines have to be kept
  126.      static for compatibility reasons for ILBM, ACBM and DTs)
  127.   */
  128.  
  129.  
  130.  
  131. /* Possible Input and Output mediums */
  132.  
  133. #define AKO_MEDIUM_NONE     ((ULONG) 0)          /* means : DEFAULT          */
  134. #define AKO_MEDIUM_ILLEGAL  ((ULONG) 0xFFFFFFFF)
  135.  
  136. #define AKO_MEDIUM_DISK ((ULONG) 1)              /* Read and Write media     */
  137. #define AKO_MEDIUM_CLIP ((ULONG) 2)
  138.  
  139.      /* not any medium might be supported by any SVObject */
  140.  
  141.  
  142. /* *************************************************** */
  143. /* *                             * */
  144. /* * Function Error Codes                 * */
  145. /* *                             * */
  146. /* *************************************************** */
  147.  
  148. #define SVERR_MAX_ERROR_TEXT_LENGTH (80)       /* plus Null-Byte */
  149.  
  150. #define SVERR_NO_ERROR             (NULL)
  151. #define SVERR_INTERNAL_ERROR         ((ULONG) 0xFFFFFFFF)
  152.  
  153. #define SVERR_UNKNOWN_FILE_FORMAT    ((ULONG) 1)
  154. #define SVERR_FILE_NOT_FOUND         ((ULONG) 2)
  155. #define SVERR_NO_MEMORY          ((ULONG) 3)
  156. #define SVERR_IFFPARSE_ERROR         ((ULONG) 4)
  157. #define SVERR_NO_CLIPBOARD         ((ULONG) 5)
  158. #define SVERR_NO_SCREEN          ((ULONG) 6)
  159. #define SVERR_NO_FILE             ((ULONG) 7)
  160. #define SVERR_NO_HANDLE          ((ULONG) 8)
  161. #define SVERR_NO_DATA             ((ULONG) 9)
  162. #define SVERR_GOT_NO_WINDOW         ((ULONG) 10)
  163. #define SVERR_GOT_NO_SCREEN         ((ULONG) 11)
  164. #define SVERR_NO_INFORMATION         ((ULONG) 12)
  165. #define SVERR_ILLEGAL_ACCESS         ((ULONG) 13)
  166. #define SVERR_DECODE_ERROR         ((ULONG) 14)
  167. #define SVERR_UNKNOWN_PARAMETERS     ((ULONG) 15)
  168. #define SVERR_ACTION_NOT_SUPPORTED   ((ULONG) 16)
  169. #define SVERR_VERSION_CONFLICT         ((ULONG) 17)
  170. #define SVERR_NO_DRIVER_AVAILABLE    ((ULONG) 18)
  171. #define SVERR_HAM_DATA               ((ULONG) 19)
  172.  
  173.     /* Each new Library-Subversion may contain new Codes above
  174.        the last one of these.
  175.        So do not interpret the codes directly, but use
  176.        SVL_GetErrorString().
  177.        Maybe, newer Codes will not be listed up here.
  178.  
  179.            As with V10.x SVL_GetErrorString() will take advantage
  180.            of the presence of localization tables (OS V38+).
  181.     */
  182.  
  183. #endif /* SUPERVIEW_SUPERVIEW_H */
  184.