home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 239.lha / include / local / ipc.h < prev    next >
C/C++ Source or Header  |  1989-05-02  |  1KB  |  51 lines

  1.  
  2. #ifndef LOCAL_TYPEDEFS_H
  3. #include <local/typedefs.h>
  4. #endif
  5.  
  6. #ifndef LOCAL_IPC_H
  7. #define LOCAL_IPC_H
  8.  
  9. #define IPCMSG    struct _IPCMSG
  10. #define IPCPORT struct _IPCPORT
  11.  
  12. IPCPORT {
  13.     PORT    Port;
  14.     long    Flags;    /*  Open flags for port */
  15. };
  16.  
  17. IPCMSG {
  18.     MSG     Msg;    /*  EXEC message header */
  19.     MNODE   ANode;    /*  Application node    */
  20.     long    Error;    /*  optional error code */
  21.     IPCPORT *ToPort;
  22.     void    (*Confirm)();
  23.  
  24.     APTR    TBuf;    /*  Sender Command    */
  25.     long    TLen;
  26.     long    TFlags;
  27.  
  28.     APTR    RBuf;    /*  Receiver Reply    */
  29.     long    RLen;
  30.     long    RFlags;
  31. };
  32.  
  33. #define IF_NOCOPY   0x0001    /*  Do allocate a copy of the buffer      */
  34. #define IF_ALLOC    0x0002    /*  Message was allocated          */
  35. #define IF_NOTFND   0x0004    /*  Command not found           (+IF_ERROR)*/
  36. #define IF_ERROR    0x0008    /*  Error occured              */
  37.  
  38. #define IF_NOAPP    0x0020    /*  Req. Application not found (+IF_ERROR)*/
  39. #define IF_GLOBAL   0x0040    /*  global message... sent to all servers */
  40. #define IF_ALLOCMSG 0x8000    /*  IPCMSG structure was allocated      */
  41.  
  42. #define PERR_NOMEM  1        /*  Ran out of memory parsing command      */
  43. #define PERR_NOVAR  2        /*  Could not find string variable      */
  44.  
  45. extern PORT *OpenIPC();
  46.  
  47. #endif
  48.  
  49.  
  50.  
  51.