From 50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7 Mon Sep 17 00:00:00 2001 From: scw Date: Mon, 5 Apr 2004 07:42:05 +0000 Subject: Merge from brc2 branch. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1695 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/config.h | 3 +-- include/proto.h | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index 038cf992..a08bc4f7 100644 --- a/include/config.h +++ b/include/config.h @@ -214,9 +214,8 @@ #define ALLPOST "ALLPOST" #define MAXTAGS 256 -#define BRC_STRLEN 15 /* Length of board name */ +#define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 -#define BRC_ITEMSIZE (BRC_STRLEN + 1 + BRC_MAXNUM * sizeof( int )) #define BRC_MAXNUM 80 #define WRAPMARGIN (511) diff --git a/include/proto.h b/include/proto.h index 9851a9e0..46eab16c 100644 --- a/include/proto.h +++ b/include/proto.h @@ -74,10 +74,6 @@ int board_digest(); /* board */ #define setutmpbid(bid) currutmp->brc_id=bid; -int brc_unread(const char *fname, int bnum, const int *blist); -int brc_initial_board(const char *boardname); -void brc_update(); -void brc_finalize(); int HasPerm(boardheader_t *bptr); int New(); int Boards(); @@ -89,12 +85,24 @@ int validboard(int bid); void sigfree(int); #endif +/* brc */ +int brc_initialize(); +void brc_finalize(); +int brc_unread(const char *fname, int bnum, const time_t *blist); +int brc_unread_time(time_t ftime, int bnum, const time_t *blist); +int brc_initial_board(const char *boardname); +void brc_update(); +int brc_read_record(int bid, int *num, time_t *list); +time_t * brc_find_record(int bid, int *num); +void brc_trunc(int bid, time_t ftime); +void brc_addlist(const char* fname); + /* cache */ int moneyof(int uid); int getuser(char *userid); void setuserid(int num, char *userid); int searchuser(char *userid); -int getbnum(char *bname); +int getbnum(const char *bname); void reset_board(int bid); void touch_boards(); void addbrd_touchcache(); @@ -105,7 +113,6 @@ boardheader_t *getbcache(int bid); int apply_boards(int (*func)(boardheader_t *)); int haspostperm(char *bname); void inbtotal(int bid, int add); -void brc_addlist(const char *fname); void setbtotal(int bid); unsigned int safe_sleep(unsigned int seconds); int apply_ulist(int (*fptr)(userinfo_t *)); -- cgit v1.2.3