diff --git a/src/queueAdd.c b/src/queueAdd.c index e69de29..563b2a5 100644 --- a/src/queueAdd.c +++ b/src/queueAdd.c @@ -0,0 +1,7 @@ +#include "libnazgul.h" + +// on ajoute en fin de queue... + +int msgQueueElemAdd(msgQueue * queue, msgQueueElemId){ + +} diff --git a/src/queueAddElem.c b/src/queueAddElem.c deleted file mode 100644 index e69de29..0000000 diff --git a/src/queueElemCreate.c b/src/queueElemCreate.c index 5c379e6..f3ae7d0 100644 --- a/src/queueElemCreate.c +++ b/src/queueElemCreate.c @@ -1,10 +1,14 @@ #include "libnazgul.h" #include "ids.h" -int msgQueueElemCreate(msgQueueId queueId,int counter){ +int msgQueueElemCreate(msgQueueElemId, + finalQueueElemId, + msgQueueId queueId, + int counter){ msgQueueElemId queueElemId; msgQueueElemIdIntern(queueElemId,queueId,counter); + strcpy(finalQueueElemId,queueElemId); int queueElemFd; queueElemFd=shm_open(queueElemId, @@ -12,14 +16,14 @@ int msgQueueElemCreate(msgQueueId queueId,int counter){ SHM_DEFAULT_MODE); if (queueElemFd == -1 ) { NZG_ERROR("shm_open : msgQueueElem creation",queueElemId); - goto ERROR; + goto ERROR; } if (ftruncate(queueElemFd, sizeof(msgQueueElem)) < 0){ - NZG_ERROR("ftruncate", queueElemId); + NZG_ERROR("ftruncate", queueElemId); goto ERROR; } - + close(queueElem_Fd); return 0; ERROR: diff --git a/src/queueRemElem.c b/src/queueRemElem.c deleted file mode 100644 index e69de29..0000000