blob: 2e824471c0674642cd8c3a45ad4b53d8438ed492 (
plain) (
tree)
|
|
#define FAVT_BOARD 1
#define FAVT_FOLDER 2
#define FAVT_LINE 3
#define FAVH_FAV 1
#define FAVH_TAG 2
#define FAVH_UNREAD 4
#define FAVH_ADM_TAG 8
/* 蝡瑞 t 靘蝞∠ (eg.祉宏) 踵 雿瘜舀鈭 tag 韏瑚
* 閮 fav 鋆⊿U箔銝憭勗嗡閮園嚗蝜潛瘝輻具*/
#define TRUE 1
#define FALSE 0
#define FAV_PRE_ALLOC 8
#define FAV_MAXDEPTH 5
#define MAX_FAV 1024
#define MAX_LINE 64
#define MAX_FOLDER 64
#define FAV3 ".fav3"
#define FAV4 ".fav4"
typedef struct {
char type;
char attr;
/* *fp could be *fav_board_t or *fav_folder_t. */
void *fp;
} fav_type_t;
typedef struct {
short nAllocs;
short DataTail; /* the tail of item list that user
have ever used */
short nBoards; /* number of the boards */
char nLines; /* number of the lines */
char nFolders; /* number of the folders */
char lineID; /* current max line id */
char folderID; /* current max folder id */
fav_type_t *favh; /* record of boards/folders */
} fav_t;
typedef struct {
short bid;
time_t lastvisit;
char attr;
} fav_board_t;
typedef struct {
char fid;
char title[BTLEN + 1];
fav_t *this_folder;
} fav_folder_t;
typedef struct {
char lid;
} fav_line_t;
|