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

  1. #ifndef    EXEC_PORTS_H
  2. #define    EXEC_PORTS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef __INC_POS_PEXEC_MSGPORT_H
  12. #include <p:pExec/MsgPort.h>
  13. #endif
  14. #ifndef EXEC_NODES_H
  15. #include <exec/nodes.h>
  16. #endif
  17. #ifndef EXEC_LISTS_H
  18. #include <exec/lists.h>
  19. #endif
  20. #ifndef EXEC_TASKS_H
  21. #include <exec/tasks.h>
  22. #endif
  23.  
  24.  
  25.  
  26. struct MsgPort
  27. {
  28.   struct Node  mp_Node;
  29.   UBYTE        mp_Flags;
  30.   UBYTE        mp_SigBit;
  31.   VOID        *mp_SigTask;
  32.   struct List  mp_MsgList;
  33. };
  34.  
  35. struct Message
  36. {
  37.   struct Node     mn_Node;
  38.   struct MsgPort *mn_ReplyPort;
  39.   UWORD           mn_Length;
  40. };
  41.  
  42.  
  43. #define mp_SoftInt mp_SigTask    /* Alias */
  44.  
  45. #define PF_ACTION    MSGPORTF_Mask
  46. #define PA_SIGNAL    MSGPORTF_Signal
  47. #define PA_SOFTINT    MSGPORTF_SoftInt
  48. #define PA_IGNORE    MSGPORTF_Ignore
  49.  
  50. #endif    /* EXEC_PORTS_H */
  51.