l3.libnazgul/src/nzg_iface.h

46 lines
823 B
C
Raw Normal View History

#ifndef _NZG_IFACE
#define _NZG_IFACE 1
2004-02-17 16:38:08 +00:00
#include "nzg_global.h"
#define MSGSPACE_DEFAULT_MODE 0600
2004-02-16 21:25:11 +00:00
2004-02-17 15:44:20 +00:00
typedef char * msgSpaceId;
2004-02-19 10:11:29 +00:00
typedef char * msgSpaceListElemId;
typedef char * msgSpacePoolDataId;
typedef char * msgSpacePoolId;
typedef char * msgSpaceQueueDataId;
typedef char * msgSpaceQueueId;
2004-02-17 15:44:20 +00:00
typedef struct MsgPool {
2004-02-19 11:03:55 +00:00
msgSpacePoolId id;
int bufferNb;
int bufferSize;
/* pid[] */
int allocDispBuffer;
int allocOverload
/* liste des processus demandeurs */
2004-02-17 15:44:20 +00:00
} msgPool;
typedef struct MsgSpace {
2004-02-19 11:03:55 +00:00
msgSpaceId id;
int poolNb;
int queueNb;
/* TODO: queueId */
int pid;
msgSpacePoolDataId poolDataId;
2004-02-17 15:44:20 +00:00
} msgSpace;
2004-02-16 21:25:11 +00:00
typedef struct MsgSpaceListElem {
void * id;
int ownerPid;
/* struct msgSpaceListElem * next; */
msgSpaceListElemId next;
} * msgSpaceList, msgSpaceListElem;
2004-02-16 21:25:11 +00:00
2004-02-19 10:11:29 +00:00
#endif
2004-02-16 21:25:11 +00:00
/* */