home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 1 / Mecomp-CD.iso / amiga / tools / system / shutdown / shutdownbase.h < prev    next >
C/C++ Source or Header  |  1992-10-08  |  2KB  |  88 lines

  1. #ifndef _LIBRARIES_SHUTDOWN_H
  2. #define _LIBRARIES_SHUTDOWN_H 1
  3.  
  4. #ifndef _EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif    /* !_EXEC_TYPES_H */
  7.  
  8. #ifndef _EXEC_NODES_H
  9. #include <exec/nodes.h>
  10. #endif    /* !_EXEC_NODES_H */
  11.  
  12. #define SDB_RESET    0
  13. #define SDF_RESET    (1 << 0)
  14.  
  15. #define SD_CHECK    0
  16. #define SD_EXIT        1
  17.  
  18. #define SHUTDOWN_NORMAL    0
  19. #define SHUTDOWN_FAST    1
  20.  
  21. struct ShutdownAction
  22. {
  23.     ULONG    sdm_Mode;
  24. };
  25.  
  26. struct ShutdownInfo
  27. {
  28.     ULONG    sdi_Flags;
  29. };
  30.  
  31. #ifdef AZTEC_C
  32.  
  33. #ifndef __VERSION
  34. #define __VERSION 360
  35. #endif    /* __VERSION */
  36.  
  37. #if __VERSION < 500
  38.  
  39. #ifdef __NO_PROTOS
  40. #undef __NO_PROTOS
  41. #endif    /* __NO_PROTOS */
  42.  
  43. #ifdef __NO_PRAGMAS
  44. #undef __NO_PRAGMAS
  45. #endif    /* __NO_PRAGMAS */
  46.  
  47. #define __NO_PROTOS    1
  48. #define __NO_PRAGMAS    1
  49.  
  50. #endif    /* __VERSION */
  51.  
  52. #endif    /* AZTEC_C */
  53.  
  54. #ifdef __ARGS
  55. #undef __ARGS
  56. #endif    /* __ARGS */
  57.  
  58. #ifdef __NO_PROTOS
  59. #define __ARGS(x) ()
  60. #else
  61. #define __ARGS(x) x
  62. #endif    /* __NO_PROTOS */
  63.  
  64. VOID    Shutdown __ARGS((ULONG Mode));
  65. APTR    AddShutdownInfoTagList __ARGS((struct Hook *Hook,STRPTR Name,struct TagItem *TagList));
  66. APTR    AddShutdownInfoTags __ARGS((struct Hook *Hook,STRPTR Name,...));
  67. LONG    RemShutdownInfo __ARGS((APTR Result));
  68.  
  69. #ifndef __NO_PRAGMAS
  70. #ifndef __NO_PROTOS
  71.  
  72. #ifdef LATTICE
  73. #pragma libcall ShutdownBase AddShutdownInfoTagList 24 a9803
  74. #pragma libcall ShutdownBase RemShutdownInfo 2a 801
  75. #pragma libcall ShutdownBase Shutdown 30 1
  76. #endif    /* LATTICE */
  77.  
  78. #ifdef AZTEC_C
  79. #pragma amicall(ShutdownBase, 0x24, AddShutdownInfoTagList(a0,a1,a2))
  80. #pragma amicall(ShutdownBase, 0x2a, RemShutdownInfo(a0))
  81. #pragma amicall(ShutdownBase, 0x30, Shutdown(d0))
  82. #endif    /* AZTEC_C */
  83.  
  84. #endif    /* !__NO_PROTOS */
  85. #endif    /* !__NO_PRAGMAS */
  86.  
  87. #endif    /* _LIBRARIES_SHUTDOWN_H */
  88.