home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / dos / notify.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.3 KB  |  99 lines

  1. #ifndef DOS_NOTIFY_H
  2. #define DOS_NOTIFY_H
  3. /*
  4. **
  5. ** $Filename: dos/notify.h $
  6. ** $Release: 2.04 Includes, V37.4 $
  7. ** $Revision: 36.8 $
  8. ** $Date: 90/08/29 $
  9. **
  10. ** dos notification definitions
  11. **
  12. ** (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  13. ** All Rights Reserved
  14. **
  15. */
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include "exec/types.h"
  19. #endif
  20.  
  21. #ifndef EXEC_PORTS_H
  22. #include "exec/ports.h"
  23. #endif
  24.  
  25. #ifndef EXEC_TASKS_H
  26. #include "exec/tasks.h"
  27. #endif
  28.  
  29.  
  30.  
  31.  
  32. #define NOTIFY_CLASS 0x40000000
  33.  
  34.  
  35. #define NOTIFY_CODE 0x1234
  36.  
  37.  
  38.  
  39.  
  40. struct NotifyMessage {
  41.  struct Message nm_ExecMessage;
  42.  ULONG nm_Class;
  43.  UWORD nm_Code;
  44.  struct NotifyRequest *nm_NReq; 
  45.  ULONG nm_DoNotTouch; 
  46.  ULONG nm_DoNotTouch2; 
  47. };
  48.  
  49.  
  50.  
  51.  
  52. struct NotifyRequest {
  53.  UBYTE *nr_Name;
  54.  UBYTE *nr_FullName; 
  55.  ULONG nr_UserData; 
  56.  ULONG nr_Flags;
  57.  
  58.  union {
  59.  
  60.  struct {
  61.  struct MsgPort *nr_Port; 
  62.  } nr_Msg;
  63.  
  64.  struct {
  65.  struct Task *nr_Task; 
  66.  UBYTE nr_SignalNum; 
  67.  UBYTE nr_pad[3];
  68.  } nr_Signal;
  69.  } nr_stuff;
  70.  
  71.  ULONG nr_Reserved[4]; 
  72.  
  73.  
  74.  ULONG nr_MsgCount; 
  75.  struct MsgPort *nr_Handler; 
  76. };
  77.  
  78.  
  79. #define NRF_SEND_MESSAGE 1
  80. #define NRF_SEND_SIGNAL 2
  81. #define NRF_WAIT_REPLY 8
  82. #define NRF_NOTIFY_INITIAL 16
  83.  
  84.  
  85. #define NRF_MAGIC 0x80000000
  86.  
  87.  
  88. #define NRB_SEND_MESSAGE 0
  89. #define NRB_SEND_SIGNAL 1
  90. #define NRB_WAIT_REPLY 3
  91. #define NRB_NOTIFY_INITIAL 4
  92.  
  93. #define NRB_MAGIC 31
  94.  
  95.  
  96. #define NR_HANDLER_FLAGS 0xffff0000
  97.  
  98. #endif 
  99.