diff --git a/src/nzg_iface.h b/src/nzg_iface.h index 50efc8c..812e3bd 100644 --- a/src/nzg_iface.h +++ b/src/nzg_iface.h @@ -54,10 +54,7 @@ typedef struct MsgSpace { } msgSpace; -/* struct msgSpaceListElem * next; */ - typedef struct MsgSpaceListElem { -// void * id; int ownerPid; msgSpaceListElemId next; } msgSpaceListElem; @@ -66,7 +63,7 @@ typedef struct MsgSpaceList { int elemCounter; msgSpaceListElemId first; msgSpaceListElemId last; -} msgSpaceList, +} msgSpaceList; #endif /* */ diff --git a/src/nzg_proto.h b/src/nzg_proto.h index 4c4d241..f0ddab3 100644 --- a/src/nzg_proto.h +++ b/src/nzg_proto.h @@ -25,7 +25,10 @@ int msgPoolIdIntern(msgPoolId dest, msgPoolId src, int num); int msgBufferInfoTabIdIntern(msgBufferInfoTabId dest, msgSpaceId src, int num); /* nzg_list.c */ /* nzg_msgList.c */ -void *add(char *idAncien, char *idNouveau); +int msgSpaceListInit(void); +int msgSpaceListLock(void); +int msgSpaceListUnlock(void); +int msgSpaceListElemCreate(msgSpaceListElemId resultName, msgSpaceId spaceId); /* nzg_poolCreate.c */ int msgPoolCreate(msgSpaceId externId, int poolIdx, int buffNb, int buffSize); /* nzg_poolDelete.c */ @@ -35,7 +38,7 @@ msgSpace *msgSpaceCreate(msgSpaceId externId, int queueNb, int poolNb, msgPool * /* nzg_spaceDelete.c */ int msgSpaceDelete(msgSpaceId externId); /* nzg_spaceOpen.c */ -msgSpace *msgSpaceOpen(msgSpaceId spaceId); +msgSpace *msgSpaceOpen(msgSpaceId externId); /* nzg_state.c */ #endif