diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/modes.h | 7 | ||||
-rw-r--r-- | include/pttstruct.h | 3 | ||||
-rw-r--r-- | include/uflags.h | 12 |
3 files changed, 14 insertions, 8 deletions
diff --git a/include/modes.h b/include/modes.h index 7ceb7ba9..b32698e7 100644 --- a/include/modes.h +++ b/include/modes.h @@ -200,6 +200,13 @@ #define PAGER_MODES (5) +#define PAGER_UI_ORIG 0x00000000 // was: WATER_ORIG +#define PAGER_UI_NEW 0x00000001 // was: WATER_NEW +#define PAGER_UI_OFO 0x00000002 // was: WATER_OFO +#define PAGER_UI_IS(uitype) ((cuser.pager_ui_type%PAGER_UI_TYPES) == (uitype)) +#define PAGER_UI_TYPES 0x00000003 // the types that we really support +#define PAGER_UI_TYPES_USER 0x00000002 // the types we allow user to select + /* stuff.c: show_file */ #define SHOWFILE_RAW (0x00) #define SHOWFILE_ALLOW_COLOR (0x01) // ESC [ ... m diff --git a/include/pttstruct.h b/include/pttstruct.h index a1ec4c55..3ce9ecb4 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -80,8 +80,7 @@ typedef struct userec_t { uint8_t year; /* 生日 年 */ uint8_t sex; /* 性別 */ - uint8_t unused_2; - + uint8_t pager_ui_type; /* 呼叫器界面類別 (was: WATER_*) */ uint8_t pager; /* 呼叫器狀態 */ uint8_t invisible; /* 隱形狀態 */ diff --git a/include/uflags.h b/include/uflags.h index 72a21831..4b695658 100644 --- a/include/uflags.h +++ b/include/uflags.h @@ -48,12 +48,12 @@ /* -------------------- userec_t.uflag2 (unsigned int) */ -// XXX TODO move water to standalone variable just like invisible/pager. -#define WATER_ORIG 0x00000000 -#define WATER_NEW 0x00000001 -#define WATER_OFO 0x00000002 -#define WATERMODE(mode) ((cuser.uflag2 & WATER_MASK) == mode) -#define WATER_MASK 0x00000003 /* water mask */ +// WATER_* is moved to PAGER_UI_* in modes.h +// #define WATER_ORIG 0x00000000 +// #define WATER_NEW 0x00000001 +// #define WATER_OFO 0x00000002 +// #define WATERMODE(mode) ((cuser.uflag2 & WATER_MASK) == mode) +// #define WATER_MASK 0x00000003 /* water mask */ // #define WATER_??? 0x00000004 // #define WATER_??? 0x00000008 |