home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / cbm / nduk-v39.lha / V39 / include / dos / notify.i < prev    next >
Text File  |  1992-09-24  |  2KB  |  80 lines

  1.     IFND    DOS_NOTIFY_I
  2. DOS_NOTIFY_I    SET    1
  3. **
  4. **    $VER: notify.i 36.5 (29.08.90)
  5. **    Includes Release 39.108
  6. **
  7. **    dos notification definitions
  8. **
  9. **    (C) Copyright 1989-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    EXEC_PORTS_I
  14.     INCLUDE    "exec/ports.i"
  15.     ENDC
  16.     IFND    EXEC_TASKS_I
  17.     INCLUDE    "exec/tasks.i"
  18.     ENDC
  19.  
  20. * use of Class and code is discouraged for the time being - we might want to
  21. * change things
  22. *------ NotifyMessage Class ------------------------------------------
  23. NOTIFY_CLASS    EQU    $40000000
  24.  
  25. *------ NotifyMessage Code --------------------------------------------
  26. NOTIFY_CODE    EQU    $1234
  27.  
  28.  
  29. * Sent to the application if SEND_MESSAGE is specified.
  30.  
  31.  STRUCTURE NotifyMessage,0
  32.     STRUCT nm_ExecMessage,MN_SIZE
  33.     ULONG  nm_Class
  34.     UWORD  nm_Code
  35.     APTR   nm_NReq            ; don't modify the request!
  36.     ULONG  nm_DoNotTouch        ; like it says!  For use by handlers
  37.     ULONG  nm_DoNotTouch2        ; ditto
  38.     LABEL  NotifyMessage_SIZEOF
  39.  
  40. * Do not modify or reuse the notifyrequest while it is active.
  41.  
  42.  STRUCTURE NotifyRequest,0
  43.     CPTR   nr_Name            ; Application sets this
  44.     CPTR   nr_FullName            ; fully expanded name created by Dos
  45.                     ; (handlers need nr_FullName)
  46.     ULONG  nr_UserData            ; for the application's use
  47.     ULONG  nr_Flags
  48.  
  49.     ;-- nr_Msg:
  50.     APTR   nr_Port            ; struct MsgPort * for SEND_MESSAGE
  51.  
  52.     ;-- nr_Signal:
  53. nr_Task    EQU nr_Port            ; struct Task * for SEND_SIGNAL
  54.     UBYTE  nr_SignalNum            ; for SEND_SIGNAL
  55.     STRUCT nr_pad,3
  56.  
  57.     ;-- Reserved fields:
  58.     STRUCT nr_Reserved,4*4
  59.  
  60.     ;-- internal for use by handlers/dos:
  61.     ULONG  nr_MsgCount            ; # of outstanding msgs
  62.     APTR   nr_Handler            ; handler sent to (for EndNotify)
  63.     LABEL  NotifyRequest_SIZEOF
  64.  
  65.  
  66. ;------ NotifyRequest Flags ------------------------------------------
  67.     BITDEF    NR,SEND_MESSAGE,0
  68.     BITDEF    NR,SEND_SIGNAL,1
  69.     BITDEF    NR,WAIT_REPLY,3
  70.     BITDEF    NR,NOTIFY_INITIAL,4
  71.  
  72. * do NOT set or remove NRF_MAGIC!  Only for use by handlers!
  73.     BITDEF    NR,MAGIC,31
  74.  
  75. * Flags reserved for private use by the handler:
  76. NR_HANDLER_FLAGS    EQU    $ffff0000
  77.  
  78.     ENDC    ; DOS_NOTIFY_I
  79.  
  80.