From b11cac0b6e195bcac7ceef85147640c26e1d3bc6 Mon Sep 17 00:00:00 2001 From: glenux Date: Thu, 19 Feb 2004 23:16:28 +0000 Subject: [PATCH] =?UTF-8?q?*=20ajout=C3=A9=20un=20type=20bool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/nzg_iface.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nzg_iface.h b/src/nzg_iface.h index 9462421..b2fde63 100644 --- a/src/nzg_iface.h +++ b/src/nzg_iface.h @@ -2,6 +2,9 @@ #define _NZG_IFACE 1 #include "nzg_global.h" + +typedef enum { true=1, false=0} bool; + typedef char msgSpaceId[MSGSPACE_ID_LEN]; typedef char msgSpaceListId[4*MSGSPACE_ID_LEN]; @@ -24,11 +27,12 @@ typedef struct MsgPoolData { int bufferNb; int bufferSize; int allocDispBuffer; - int allocOverload; + bool allocOverload; } msgPoolData; /* TODO: queueId */ + typedef struct MsgSpace { msgSpaceId id; int poolNb;