home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / dos / notify.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  1.6 KB  |  81 lines

  1. #ifndef DOS_NOTIFY_H
  2. #define DOS_NOTIFY_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include "exec/types.h"
  10. #endif
  11. #ifndef EXEC_PORTS_H
  12. #include "exec/ports.h"
  13. #endif
  14. #ifndef EXEC_TASKS_H
  15. #include "exec/tasks.h"
  16. #endif
  17.  
  18. #ifndef __INC_POS_PDOS_NOTIFY_H
  19. #include <p:pDOS/Notify.h>
  20. #endif
  21.  
  22.  
  23. #define NOTIFY_CLASS    NOTIMSGCL_NReq
  24. #define NOTIFY_CODE    0
  25.  
  26.  
  27. struct NotifyMessage
  28. {
  29.   struct Message        nm_ExecMessage;
  30.   struct NotifyRequest *nm_NReq;
  31.   ULONG                 nm_Class;
  32.   ULONG                 nm_Code;
  33. };
  34.  
  35.  
  36. struct NotifyRequest
  37. {
  38.   struct Node nr_Node;
  39.   UBYTE *nr_Name;
  40.   UBYTE *nr_FullName;
  41.   ULONG nr_UserData;
  42.   ULONG nr_UserData1;
  43.   ULONG nr_Flags;
  44.  
  45.   union {
  46.     UBYTE nr_Reserved1[12];
  47.  
  48.     struct {
  49.       struct MsgPort *nr_Port;
  50.     } nr_Msg;
  51.  
  52.     struct {
  53.       struct Task *nr_Task;
  54.       UBYTE nr_SignalNum;
  55.     } nr_Signal;
  56.   } nr_stuff;
  57.  
  58.   struct MsgPort *nr_Handler;
  59.   UBYTE           nr_FSReserved[32]; /* for Filesystem use */
  60.   UBYTE           nr_Reserved2[32];
  61. };
  62.  
  63. #define NRF_SEND_MESSAGE    NOTIREQF_Message
  64. #define NRF_SEND_SIGNAL        NOTIREQF_Signal
  65. #define NRF_WAIT_REPLY        NOTIREQF_WaitReply
  66. #define NRF_NOTIFY_INITIAL    NOTIREQF_Initial
  67.  
  68. #define NRF_MAGIC    0x80000000
  69.  
  70. #define NRB_SEND_MESSAGE    NOTIREQB_Message
  71. #define NRB_SEND_SIGNAL        NOTIREQB_Signal
  72. #define NRB_WAIT_REPLY        NOTIREQB_WaitReply
  73. #define NRB_NOTIFY_INITIAL    NOTIREQB_Initial
  74.  
  75. #define NRB_MAGIC        31
  76.  
  77. #define NR_HANDLER_FLAGS    NOTIREQF_HandlerMask
  78.  
  79.  
  80. #endif /* DOS_NOTIFY_H */
  81.