home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d1xx
/
d168
/
include
/
local
/
ipc.h
< prev
next >
Wrap
C/C++ Source or Header
|
1988-11-22
|
1KB
|
51 lines
#ifndef LOCAL_TYPEDEFS_H
#include <local/typedefs.h>
#endif
#ifndef LOCAL_IPC_H
#define LOCAL_IPC_H
#define IPCMSG struct _IPCMSG
#define IPCPORT struct _IPCPORT
IPCPORT {
PORT Port;
long Flags; /* Open flags for port */
};
IPCMSG {
MSG Msg; /* EXEC message header */
MNODE ANode; /* Application node */
long Error; /* optional error code */
IPCPORT *ToPort;
void (*Confirm)();
APTR TBuf; /* Sender Command */
long TLen;
long TFlags;
APTR RBuf; /* Receiver Reply */
long RLen;
long RFlags;
};
#define IF_NOCOPY 0x0001 /* Do allocate a copy of the buffer */
#define IF_ALLOC 0x0002 /* Message was allocated */
#define IF_NOTFND 0x0004 /* Command not found (+IF_ERROR)*/
#define IF_ERROR 0x0008 /* Error occured */
#define IF_NOAPP 0x0020 /* Req. Application not found (+IF_ERROR)*/
#define IF_GLOBAL 0x0040 /* global message... sent to all servers */
#define IF_ALLOCMSG 0x8000 /* IPCMSG structure was allocated */
#define PERR_NOMEM 1 /* Ran out of memory parsing command */
#define PERR_NOVAR 2 /* Could not find string variable */
extern PORT *OpenIPC();
#endif