diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fav.h | 5 | ||||
-rw-r--r-- | include/proto.h | 18 |
2 files changed, 13 insertions, 10 deletions
diff --git a/include/fav.h b/include/fav.h index 196a61d5..dea3cbba 100644 --- a/include/fav.h +++ b/include/fav.h @@ -1,4 +1,6 @@ +#define FAV_VERSION 3363 + #define FAVT_BOARD 1 #define FAVT_FOLDER 2 #define FAVT_LINE 3 @@ -21,6 +23,7 @@ #define MAX_FOLDER 64 #define NEW_FAV_THRESHOLD 12 /* half page */ +#define FAV ".fav" #define FAV4 ".fav4" #define FAVNB ".favnb" @@ -45,7 +48,7 @@ typedef struct { } fav_t; typedef struct { - short bid; + int bid; time4_t lastvisit; /* UNUSED */ char attr; } fav_board_t; diff --git a/include/proto.h b/include/proto.h index 92d23207..36801e66 100644 --- a/include/proto.h +++ b/include/proto.h @@ -236,15 +236,15 @@ void fav_sort_by_name(void); void fav_sort_by_class(void); int fav_load(void); int fav_save(void); -void fav_remove_item(short id, char type); -fav_type_t *getadmtag(short bid); -fav_type_t *getboard(short bid); -fav_type_t *getfolder(short fid); -char getbrdattr(short bid); -time4_t getbrdtime(short bid); -void setbrdtime(short bid, time4_t t); +void fav_remove_item(int id, char type); +fav_type_t *getadmtag(int bid); +fav_type_t *getboard(int bid); +fav_type_t *getfolder(int fid); +char getbrdattr(int bid); +time4_t getbrdtime(int bid); +void setbrdtime(int bid, time4_t t); int fav_getid(fav_type_t *ft); -void fav_tag(short id, char type, char boolean); +void fav_tag(int id, char type, char boolean); void move_in_current_folder(int from, int to); void fav_move(int from, int to); fav_type_t *fav_add_line(void); @@ -256,7 +256,7 @@ void fav_add_all_tagged_item(void); void fav_remove_all_tag(void); void fav_set_folder_title(fav_type_t *ft, char *title); int fav_stack_full(void); -void fav_folder_in(short fid); +void fav_folder_in(int fid); void fav_folder_out(void); void fav_free(void); int fav_v3_to_v4(void); |