#ifndef _NZG_IFACE #define _NZG_IFACE 1 #include "nzg_global.h" #define MSGSPACE_DEFAULT_MODE 0600 #define MSGSPACE_ID_LEN 32 typedef char msgSpaceId[MSGSPACE_ID_LEN]; typedef char msgSpaceListId[4*MSGSPACE_ID_LEN]; typedef char msgSpaceListElemId[4*MSGSPACE_ID_LEN]; typedef char msgSpacePoolDataId[4*MSGSPACE_ID_LEN]; typedef char msgSpacePoolId[4*MSGSPACE_ID_LEN]; typedef char msgSpaceQueueDataId[4*MSGSPACE_ID_LEN]; typedef char msgSpaceQueueId[4*MSGSPACE_ID_LEN]; /* pid[] */ /* liste des processus demandeurs */ typedef struct MsgPool { msgSpacePoolId id; int bufferNb; int bufferSize; int allocDispBuffer; int allocOverload; } msgPool; /* TODO: queueId */ typedef struct MsgSpace { msgSpaceId id; int poolNb; int queueNb; int pid; msgSpacePoolDataId poolDataId; } msgSpace; /* struct msgSpaceListElem * next; */ typedef struct MsgSpaceListElem { void * id; int ownerPid; msgSpaceListElemId next; } * msgSpaceList, msgSpaceListElem; #endif /* */