l3.libnazgul/src/nzg_iface.h

50 lines
858 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 11:09:04 +00:00
2004-02-19 11:11:33 +00:00
typedef char * msgSpaceListId;
2004-02-19 10:11:29 +00:00
typedef char * msgSpaceListElemId;
2004-02-19 11:11:33 +00:00
2004-02-19 10:11:29 +00:00
typedef char * msgSpacePoolDataId;
typedef char * msgSpacePoolId;
typedef char * msgSpaceQueueDataId;
typedef char * msgSpaceQueueId;
2004-02-17 15:44:20 +00:00
2004-02-19 11:06:03 +00:00
/* pid[] */
/* liste des processus demandeurs */
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;
int allocDispBuffer;
2004-02-19 11:06:03 +00:00
int allocOverload;
2004-02-17 15:44:20 +00:00
} msgPool;
2004-02-19 11:06:03 +00:00
/* TODO: queueId */
2004-02-17 15:44:20 +00:00
typedef struct MsgSpace {
2004-02-19 11:03:55 +00:00
msgSpaceId id;
int poolNb;
int queueNb;
2004-02-19 11:06:03 +00:00
int pid;
2004-02-19 11:03:55 +00:00
msgSpacePoolDataId poolDataId;
2004-02-17 15:44:20 +00:00
} msgSpace;
2004-02-16 21:25:11 +00:00
2004-02-19 11:06:03 +00:00
/* struct msgSpaceListElem * next; */
2004-02-16 21:25:11 +00:00
typedef struct MsgSpaceListElem {
void * id;
int ownerPid;
2004-02-19 11:06:03 +00:00
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
/* */