From c17b1ec0c4c66cbe2761fa0e8c83831e6258d11d Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 27 Mar 2008 06:26:11 +0000 Subject: - (internal) move UTIL_C API from mbbsd/stuff to cmbbs. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4031 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/cmbbs.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'include/cmbbs.h') diff --git a/include/cmbbs.h b/include/cmbbs.h index de042a03..b6c69adb 100644 --- a/include/cmbbs.h +++ b/include/cmbbs.h @@ -1,6 +1,33 @@ #ifndef _LIBBBS_H_ #define _LIBBBS_H_ +#include "config.h" +#include "common.h" +#include "cmsys.h" +#include "pttstruct.h" + +/* name.c */ +extern int is_validuserid(const char *id); + +/* path.c */ +/* XXX set*() all assume buffer size = PATHLEN */ +extern void setdirpath(char *buf, const char *direct, const char *fname); +extern void setbpath (char *buf, const char *boardname); +extern void setbfile (char *buf, const char *boardname, const char *fname); +extern void setbnfile(char *buf, const char *boardname, const char *fname, int n); +extern void setapath(char *buf, const char *boardname); +extern void setadir (char *buf, const char *path); +extern void sethomepath(char *buf, const char *userid); +extern void sethomedir (char *buf, const char *userid); +extern void sethomeman (char *buf, const char *userid); +extern void sethomefile(char *buf, const char *userid, const char *fname); +// setbdir +// setuserfile + +/* file.c */ +extern int belong(const char *filelist, const char *key); + +/* money.c */ extern int give_tax(int money); extern const char* money_level(int money); -- cgit v1.2.3