2019-09-16 17:15:37 +02:00
|
|
|
#ifndef _NZG_IFACE
|
|
|
|
#define _NZG_IFACE 1
|
|
|
|
|
|
|
|
|
2020-03-03 23:42:59 +01:00
|
|
|
#include "nzg_global.h"
|
|
|
|
#define MSGSPACE_DEFAULT_MODE 0600
|
2019-09-17 14:02:24 +02:00
|
|
|
#define MSGSPACE_ID_LEN 32
|
2004-02-16 21:25:11 +00:00
|
|
|
|
2019-09-17 14:02:24 +02:00
|
|
|
typedef char msgSpaceId[MSGSPACE_ID_LEN];
|
2019-09-17 08:58:16 +02:00
|
|
|
|
2019-09-17 14:02:24 +02:00
|
|
|
typedef char msgSpaceListId[4*MSGSPACE_ID_LEN];
|
|
|
|
typedef char msgSpaceListElemId[4*MSGSPACE_ID_LEN];
|
2019-09-17 08:58:16 +02:00
|
|
|
|
2019-09-17 14:02:24 +02:00
|
|
|
typedef char msgSpacePoolDataId[4*MSGSPACE_ID_LEN];
|
|
|
|
typedef char msgSpacePoolId[4*MSGSPACE_ID_LEN];
|
|
|
|
typedef char msgSpaceQueueDataId[4*MSGSPACE_ID_LEN];
|
|
|
|
typedef char msgSpaceQueueId[4*MSGSPACE_ID_LEN];
|
2019-09-16 16:43:39 +02:00
|
|
|
|
2019-09-17 08:58:16 +02:00
|
|
|
/* pid[] */
|
|
|
|
/* liste des processus demandeurs */
|
2019-09-16 16:43:39 +02:00
|
|
|
typedef struct MsgPool {
|
2019-09-17 08:58:16 +02:00
|
|
|
msgSpacePoolId id;
|
|
|
|
int bufferNb;
|
|
|
|
int bufferSize;
|
|
|
|
int allocDispBuffer;
|
|
|
|
int allocOverload;
|
2019-09-16 16:43:39 +02:00
|
|
|
} msgPool;
|
|
|
|
|
2019-09-17 08:58:16 +02:00
|
|
|
/* TODO: queueId */
|
|
|
|
|
2019-09-16 16:43:39 +02:00
|
|
|
typedef struct MsgSpace {
|
2019-09-17 08:58:16 +02:00
|
|
|
msgSpaceId id;
|
|
|
|
int poolNb;
|
|
|
|
int queueNb;
|
2019-09-17 14:16:29 +02:00
|
|
|
int pid;
|
2019-09-17 08:58:16 +02:00
|
|
|
msgSpacePoolDataId poolDataId;
|
2019-09-16 16:43:39 +02:00
|
|
|
} msgSpace;
|
|
|
|
|
2004-02-16 21:25:11 +00:00
|
|
|
|
2019-09-17 08:58:16 +02:00
|
|
|
/* struct msgSpaceListElem * next; */
|
2004-02-16 21:25:11 +00:00
|
|
|
|
2019-09-16 17:15:37 +02:00
|
|
|
typedef struct MsgSpaceListElem {
|
|
|
|
void * id;
|
|
|
|
int ownerPid;
|
2019-09-17 14:16:29 +02:00
|
|
|
msgSpaceListElemId next;
|
2019-09-16 17:15:37 +02:00
|
|
|
} * msgSpaceList, msgSpaceListElem;
|
2004-02-16 21:25:11 +00:00
|
|
|
|
2019-09-16 17:15:55 +02:00
|
|
|
|
2019-09-16 17:15:37 +02:00
|
|
|
#endif
|
2004-02-16 21:25:11 +00:00
|
|
|
/* */
|