2004-02-23 20:37:08 +00:00
|
|
|
#include "libnazgul.h"
|
|
|
|
|
|
|
|
int msgQueueElemDelete(msgQueueElemId queueElemId){
|
|
|
|
msgQueueElem * queueElemAddr;
|
|
|
|
msgQueueElemId nextIdToDie;
|
|
|
|
|
|
|
|
queueElemAddr = msgQueueElemOpen(queueElemId);
|
|
|
|
msgQueueElemClose(queueElem);
|
|
|
|
if (nextIdToDie != NULL){
|
|
|
|
return msgQueueElemDelete(nextIdToDie);
|
|
|
|
} else {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ERROR:
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|