diff --git a/src/nzg_iface.h b/src/nzg_iface.h index ebca613..54ad591 100644 --- a/src/nzg_iface.h +++ b/src/nzg_iface.h @@ -12,32 +12,33 @@ typedef char * msgSpacePoolId; typedef char * msgSpaceQueueDataId; typedef char * msgSpaceQueueId; + /* pid[] */ + /* liste des processus demandeurs */ typedef struct MsgPool { msgSpacePoolId id; int bufferNb; int bufferSize; - /* pid[] */ int allocDispBuffer; - int allocOverload - /* liste des processus demandeurs */ + int allocOverload; } msgPool; +/* TODO: queueId */ + typedef struct MsgSpace { msgSpaceId id; int poolNb; int queueNb; - /* TODO: queueId */ - int pid; + int pid; msgSpacePoolDataId poolDataId; } msgSpace; +/* struct msgSpaceListElem * next; */ typedef struct MsgSpaceListElem { void * id; int ownerPid; - /* struct msgSpaceListElem * next; */ - msgSpaceListElemId next; + msgSpaceListElemId next; } * msgSpaceList, msgSpaceListElem; diff --git a/src/nzg_spaces.c b/src/nzg_spaces.c index f8ce569..a1ca57c 100644 --- a/src/nzg_spaces.c +++ b/src/nzg_spaces.c @@ -16,6 +16,7 @@ msgSpace * msgSpaceCreate( msgSpaceId nzgId; msgSpaceList mSList; int mSFd; // shm file descriptor + int i; static int mSIdNum=-1; msgSpace * mSAddr; @@ -70,7 +71,7 @@ msgSpace * msgSpaceCreate( for (i=0;i + // mSAddr-> }