From 9a88389a0f698977110f3bd11e18f330ab2c42d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 9 Aug 2010 19:03:26 +0000 Subject: [PATCH] * switch the roomviews from defines to enum (of same integer value) --- libcitadel/lib/libcitadel.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index e6e097d4e..794734811 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -93,19 +93,19 @@ typedef enum __GPEXWhichPolicy { * View definitions. * Note that not all views are implemented in all clients. */ -#define VIEW_BBS 0 /* Bulletin board view */ -#define VIEW_MAILBOX 1 /* Mailbox summary */ -#define VIEW_ADDRESSBOOK 2 /* Address book view */ -#define VIEW_CALENDAR 3 /* Calendar view */ -#define VIEW_TASKS 4 /* Tasks view */ -#define VIEW_NOTES 5 /* Notes view */ -#define VIEW_WIKI 6 /* Wiki view */ -#define VIEW_CALBRIEF 7 /* Brief Calendar view */ -#define VIEW_JOURNAL 8 /* Journal view */ -#define VIEW_MAX 8 /* increment me... */ - -#define VIEW_BLOG 9 /* Blog view (not yet implemented) */ - +typedef enum _room_views { + VIEW_BBS = 0, /* Bulletin board view */ + VIEW_MAILBOX = 1, /* Mailbox summary */ + VIEW_ADDRESSBOOK = 2, /* Address book view */ + VIEW_CALENDAR = 3, /* Calendar view */ + VIEW_TASKS = 4, /* Tasks view */ + VIEW_NOTES = 5, /* Notes view */ + VIEW_WIKI = 6, /* Wiki view */ + VIEW_CALBRIEF = 7, /* Brief Calendar view */ + VIEW_JOURNAL = 8, /* Journal view */ + VIEW_BLOG = 9, /* Blog view (not yet implemented) */ + VIEW_MAX +} ROOM_VIEWS; #ifndef IsEmptyStr #define IsEmptyStr(a) ((a)[0] == '\0') -- 2.39.2