summaryrefslogtreecommitdiffstats
path: root/include/cmbbs.h
blob: a7416a361bb1f038b47a19f413452be44cdaac67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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);

/* string.c */  
extern void obfuscate_ipstr(char *s);

#endif