2019-09-16 17:15:55 +02:00
|
|
|
#ifndef _NZG_PROTO
|
|
|
|
#define _NZG_PROTO 1
|
2004-02-16 21:25:11 +00:00
|
|
|
|
2019-09-17 14:49:00 +02:00
|
|
|
/* allocate.c */
|
2004-02-21 21:07:40 +00:00
|
|
|
void *msgAllocate(msgSpace *space, int pool, int taille, int option);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* bufferAttachProc.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgBufferAttachProc(msgPoolData *poolDataTabAddr, int poolIndex, int bufferIndex, void *addr);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* buffer.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgBufferGetAttachedProcIndex(msgPoolData *poolDataTabAddr, int poolIndex, void *addr);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* bufferDetachProc.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgBufferDetachProc(msgPoolData *poolDataTabAddr, int poolIndex, int bufferIndex, void *addr);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* bufferGetFreeIndex.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgBufferGetFreeIndex(msgPoolData *poolDataTabAddr, int poolIndex);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* bufferGetProcAttach.c */
|
|
|
|
int msgBufferGetProcAttach(msgPoolData *poolDataTabAddr, int poolNb, int *poolIndex, int *bufferIndex, void *addr);
|
|
|
|
/* bufferInfoTabCreate.c */
|
2019-09-17 14:47:35 +02:00
|
|
|
int msgBufferInfoTabCreate(msgSpaceId externId, msgPoolData *poolDataTabAddr, int poolIdx, int bufferNb);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* bufferInfoTabInit.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgBufferInfoTabInit(msgPoolData *poolDataTabAddr, int poolIndex);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* free.c */
|
2019-09-17 14:47:35 +02:00
|
|
|
int msgFree(msgSpace *space, void *addr);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* ids.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgSpaceIdIntern(msgSpaceId dest, const msgSpaceId src);
|
2019-09-17 14:49:00 +02:00
|
|
|
int msgPoolDataTabSemIdIntern(msgPoolSemId destSemId, const msgSpaceId externId);
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgPoolSemIdIntern(msgPoolSemId destSemId, const msgSpaceId srcPoolId, int poolIdx);
|
|
|
|
int msgPoolDataIdIntern(msgPoolDataTabId dest, const msgSpaceId src);
|
|
|
|
int msgPoolIdIntern(msgPoolId dest, msgPoolId src, int num);
|
|
|
|
int msgBufferInfoTabIdIntern(msgBufferInfoTabId dest, msgSpaceId src, int num);
|
2019-09-17 14:49:00 +02:00
|
|
|
int msgQueueSemIdIntern(msgQueueSemId dest, msgSpaceId externId, int queueIdx);
|
2004-02-23 21:41:20 +00:00
|
|
|
int msgQueueIdIntern(msgQueueId dest, msgSpaceId externId, int queueIdx);
|
|
|
|
int msgQueueElemIdIntern(msgQueueElemId dest, msgQueueId src, int counter);
|
2004-02-23 22:19:51 +00:00
|
|
|
|
|
|
|
int spaceListElemIdIntern(msgSpaceListElemId desc,msgSpaceId src);
|
|
|
|
|
2019-09-17 14:49:00 +02:00
|
|
|
/* list.c */
|
|
|
|
/* poolCreate.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgPoolCreate(msgSpaceId externId, int poolIdx, int buffNb, int buffSize);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* poolDelete.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgPoolDelete(msgSpaceId spaceId, int poolIdx);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* queueAdd.c */
|
2004-02-23 21:41:20 +00:00
|
|
|
int msgQueueElemAdd(msgQueue *queue, msgQueueElemId newElemId);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* queueClose.c */
|
|
|
|
int msgQueueClose(msgQueue *queue);
|
|
|
|
/* queueDelete.c */
|
|
|
|
int msgQueueElemDelete(msgQueueElemId queueElemId);
|
|
|
|
/* queueElemClose.c */
|
|
|
|
int msgQueueElemClose(msgQueueElem *queueElem);
|
2004-02-23 21:41:20 +00:00
|
|
|
/* queueElemCreate.c */
|
|
|
|
int msgQueueElemCreate(msgQueueElemId finalQueueElemId, msgQueueId queueId, int counter);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* queueElemDelete.c */
|
|
|
|
int msgQueueElemDelete(msgQueueElemId queueElemId);
|
|
|
|
/* queueElemOpen.c */
|
|
|
|
void *msgQueueElemOpen(msgQueueElemId queueElemId);
|
|
|
|
/* queueInit.c */
|
2004-02-23 21:41:20 +00:00
|
|
|
msgQueue *queueInit(msgSpaceId externId, int queueIdx);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* queueLock.c */
|
|
|
|
int queueLock(msgSpaceId externId, int queueIdx);
|
|
|
|
/* queueOpen.c */
|
|
|
|
void *msgQueueOpen(msgQueueId queueId);
|
|
|
|
/* queueUnlock.c */
|
|
|
|
int queueUnlock(msgSpaceId externId, int queueIdx);
|
|
|
|
/* spaceCreate.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
msgSpace *msgSpaceCreate(msgSpaceId externId, int queueNb, int poolNb, msgPool *poolInfos);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* spaceDelete.c */
|
2004-02-22 15:29:36 +00:00
|
|
|
int msgSpaceDelete(msgSpaceId externId);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* spaceListAdd.c */
|
|
|
|
/* spaceListElemCreate.c */
|
|
|
|
int msgSpaceListElemCreate(msgSpaceListElemId resultName, msgSpaceId spaceId);
|
|
|
|
/* spaceListElemLink.c */
|
|
|
|
/* spaceListInit.c */
|
|
|
|
int msgSpaceListInit(void);
|
|
|
|
/* spaceListLocking.c */
|
|
|
|
int msgSpaceListLock(void);
|
|
|
|
int msgSpaceListUnlock(void);
|
|
|
|
/* spaceListRem.c */
|
|
|
|
/* spaceOpen.c */
|
2004-02-22 22:17:38 +00:00
|
|
|
msgSpace *msgSpaceOpen(msgSpaceId externId);
|
2019-09-17 14:49:00 +02:00
|
|
|
/* state.c */
|
|
|
|
|
2019-09-16 17:15:55 +02:00
|
|
|
#endif
|