summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-05 15:42:05 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-05 15:42:05 +0800
commit50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7 (patch)
tree0f81798297aa384ec1e2447fcb73170bdfbe963b /include
parent983a7b8ef01b03cc7596751f431277ed7540c713 (diff)
downloadpttbbs-50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7.tar
pttbbs-50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7.tar.gz
pttbbs-50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7.tar.bz2
pttbbs-50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7.tar.lz
pttbbs-50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7.tar.xz
pttbbs-50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7.tar.zst
pttbbs-50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7.zip
Merge from brc2 branch.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1695 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/config.h3
-rw-r--r--include/proto.h19
2 files changed, 14 insertions, 8 deletions
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 *));