home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / pDOS / Notify.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  3.5 KB  |  110 lines

  1. @DATABASE "pDOS/Notify.h"
  2. @MASTER   "Work2:AD/IInc/pDOS/Notify.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:34:09
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "pDOS/Notify.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"pDOS/Notify.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_DosNotifyMessage" LINK "pDOS/Notify.h/File" 74}  @{"pOS_DosNotifyReq" LINK "pDOS/Notify.h/File" 21}
  16.  
  17. @ENDNODE
  18. @NODE File "pDOS/Notify.h"
  19. #ifndef __INC_POS_PDOS_NOTIFY_H
  20. #define __INC_POS_PDOS_NOTIFY_H
  21. /*******************************************************************
  22.  Includes Release 24
  23.  (C) Copyright 1995-1997 proDAD
  24.      All Rights Reserved
  25.  
  26.  $AUT Holger Burkarth
  27.  $DAT >>Notify.h<<   08 Jan 1997    09:40:45 - (C) ProDAD
  28. *******************************************************************/
  29. #ifndef __INC_POS_PDOS_DOSTYPES_H
  30. #include <@{"pDOS/DosTypes.h" LINK "pDOS/DosTypes.h/File"}>
  31. #endif
  32. #ifndef __INC_POS_PEXEC_MSGPORT_H
  33. #include <@{"pExec/MsgPort.h" LINK "pExec/MsgPort.h/File"}>
  34. #endif
  35.  
  36.  
  37. /*----------------------------------
  38. -----------------------------------*/
  39. struct pOS_DosNotifyReq
  40. {
  41.   @{"struct pOS_Node" LINK "pExec/List.h/File" 18} nr_Node;         /* for the Filesystem use */
  42.  
  43.   const @{"CHAR" LINK "pExec/Types.h/File" 100}     *nr_Name;         /* pOS_ConstructDosMsgXXX() vermerkt den Filename,
  44.                                    ** @{"pOS_DosStartNotify()" LINK "pDOSD/pOS_DosStartNotify"} setzt auf FilePart
  45.                                    */
  46.   const @{"CHAR" LINK "pExec/Types.h/File" 100}     *nr_FullName;     /* set by pDos - don't touch */
  47.         @{"ULONG" LINK "pExec/Types.h/File" 91}     nr_UserData[2];  /* for applications use */
  48.         @{"ULONG" LINK "pExec/Types.h/File" 91}     nr_Flags;        /* (enum pOS_DosNotifyReqFlags) */
  49.  
  50.   union
  51.     @{"UBYTE" LINK "pExec/Types.h/File" 95} nr_Reserved1[12];
  52.  
  53.     struct
  54.       @{"struct pOS_MsgPort" LINK "pExec/MsgPort.h/File" 18} *nrmg_Port;   /* for NOTIREQF_Message => (@{"struct pOS_DosNotifyMessage" LINK "pDOS/Notify.h/File" 74}*) */
  55.     } nr_Msg;
  56.  
  57.     struct
  58.       @{"struct pOS_Task" LINK "pExec/Task.h/File" 18} *nrsg_SigTask;   /* for NOTIREQF_Signal */
  59.       @{"UBYTE" LINK "pExec/Types.h/File" 95}            nrsg_SigBit;
  60.       @{"UBYTE" LINK "pExec/Types.h/File" 95}            nrsg_pad;
  61.     } nr_Sig;
  62.   } nr_U;
  63.  
  64.  
  65.   @{"struct pOS_DosDevice" LINK "pDOS/DosDev.h/File" 256} *nr_DosDev;         /* for @{"pOS_DosEndNotify()" LINK "pDOSD/pOS_DosEndNotify"} */
  66.   @{"UBYTE" LINK "pExec/Types.h/File" 95}                 nr_FSReserved[32]; /* for Filesystem use */
  67.  
  68.   @{"UBYTE" LINK "pExec/Types.h/File" 95} nr_Reserved2[32];
  69. };
  70.  
  71.  
  72.  
  73. enum pOS_DosNotifyReqFlags /** nr_Flags **/
  74. {
  75.   NOTIREQB_Message=0,
  76.   NOTIREQB_Signal,
  77.   NOTIREQB_WaitReply,
  78.   NOTIREQB_Initial,
  79.  
  80.   NOTIREQF_Message    =0x0001, /* send Message */
  81.   NOTIREQF_Signal     =0x0002, /* send Signal */
  82.   NOTIREQF_WaitReply  =0x0004,
  83.   NOTIREQF_Initial    =0x0008, /* event, when object exists */
  84.  
  85.   NOTIREQF_HandlerMask =0xffff0000
  86. };
  87.  
  88.  
  89.  
  90. /*----------------------------------
  91. -----------------------------------*/
  92. struct pOS_DosNotifyMessage
  93. {
  94.   @{"struct pOS_Message" LINK "pExec/MsgPort.h/File" 41}             nm_Message;
  95.   const @{"struct pOS_DosNotifyReq" LINK File 21} *nm_NReq;    /* don't modify the request! */
  96.  
  97.   @{"ULONG" LINK "pExec/Types.h/File" 91}             nm_Class;   /* (enum pOS_DosNotifyMsgClass) */
  98.   @{"ULONG" LINK "pExec/Types.h/File" 91}             nm_Code;    /* (enum pOS_DosIOReqCommands) */
  99. };
  100.  
  101.  
  102.  
  103. enum pOS_DosNotifyMsgClass /** nm_Class **/
  104. {
  105.   NOTIMSGCL_NReq =0x40000000,
  106. };
  107.  
  108. #endif
  109. @ENDNODE
  110.