Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 295bd7a5 authored by rswindell's avatar rswindell

DLL-exported some more functions required for FILE_ID.DIZ support in the FTP server.

parent a1978c3b
......@@ -117,7 +117,7 @@ int bstrlen(char *str)
return(i);
}
void strip_ctrl(char *str)
void DLLCALL strip_ctrl(char *str)
{
char tmp[1024];
int i,j,k;
......@@ -138,7 +138,7 @@ void strip_ctrl(char *str)
strcpy(str,tmp);
}
void strip_exascii(char *str)
void DLLCALL strip_exascii(char *str)
{
char tmp[1024];
int i,j,k;
......
......@@ -715,45 +715,52 @@ extern "C" {
#endif
/* main.cpp */
DLLEXPORT BOOL DLLCALL getstats(scfg_t* cfg, char node, stats_t* stats);
DLLEXPORT BOOL DLLCALL getstats(scfg_t* cfg, char node, stats_t* stats);
/* mail.cpp */
DLLEXPORT int DLLCALL getmail(scfg_t* cfg, int usernumber, BOOL sent);
DLLEXPORT mail_t* DLLCALL loadmail(smb_t* smb, ulong* msgs, uint usernumber
DLLEXPORT int DLLCALL getmail(scfg_t* cfg, int usernumber, BOOL sent);
DLLEXPORT mail_t * DLLCALL loadmail(smb_t* smb, ulong* msgs, uint usernumber
,int which, long mode);
DLLEXPORT void DLLCALL freemail(mail_t* mail);
DLLEXPORT void DLLCALL freemail(mail_t* mail);
/* filedat.c */
DLLEXPORT BOOL DLLCALL getfileixb(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL getfiledat(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL putfiledat(scfg_t* cfg, file_t* f);
DLLEXPORT void DLLCALL putextdesc(scfg_t* cfg, uint dirnum, ulong datoffset, char *ext);
DLLEXPORT void DLLCALL getextdesc(scfg_t* cfg, uint dirnum, ulong datoffset, char *ext);
DLLEXPORT BOOL DLLCALL removefiledat(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL addfiledat(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL findfile(scfg_t* cfg, uint dirnum, char *filename);
DLLEXPORT char * DLLCALL getfname(char *path);
DLLEXPORT char * DLLCALL padfname(char *filename, char *str);
DLLEXPORT char * DLLCALL unpadfname(char *filename, char *str);
DLLEXPORT BOOL DLLCALL rmuserxfers(scfg_t* cfg, int fromuser, int destuser, char *fname);
DLLEXPORT ulong DLLCALL getposts(scfg_t* cfg, uint subnum);
DLLEXPORT long DLLCALL getfiles(scfg_t* cfg, uint dirnum);
DLLEXPORT BOOL DLLCALL getfileixb(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL getfiledat(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL putfiledat(scfg_t* cfg, file_t* f);
DLLEXPORT void DLLCALL putextdesc(scfg_t* cfg, uint dirnum, ulong datoffset, char *ext);
DLLEXPORT void DLLCALL getextdesc(scfg_t* cfg, uint dirnum, ulong datoffset, char *ext);
DLLEXPORT BOOL DLLCALL removefiledat(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL addfiledat(scfg_t* cfg, file_t* f);
DLLEXPORT BOOL DLLCALL findfile(scfg_t* cfg, uint dirnum, char *filename);
DLLEXPORT char * DLLCALL getfname(char *path);
DLLEXPORT char * DLLCALL padfname(char *filename, char *str);
DLLEXPORT char * DLLCALL unpadfname(char *filename, char *str);
DLLEXPORT BOOL DLLCALL rmuserxfers(scfg_t* cfg, int fromuser, int destuser, char *fname);
DLLEXPORT ulong DLLCALL getposts(scfg_t* cfg, uint subnum);
DLLEXPORT long DLLCALL getfiles(scfg_t* cfg, uint dirnum);
/* str.cpp */
DLLEXPORT char* DLLCALL ascii_str(uchar* str);
DLLEXPORT char * DLLCALL ascii_str(uchar* str);
DLLEXPORT ushort DLLCALL crc16(char *str);
DLLEXPORT char * DLLCALL zonestr(short zone);
DLLEXPORT BOOL DLLCALL trashcan(scfg_t* cfg, char *insearch, char *name);
DLLEXPORT BOOL DLLCALL trashcan(scfg_t* cfg, char *insearch, char *name);
DLLEXPORT int DLLCALL putsmsg(scfg_t* cfg, int usernumber, char *strin);
/* load_cfg.C */
/* misc.c */
DLLEXPORT char * DLLCALL zonestr(short zone);
DLLEXPORT void DLLCALL strip_ctrl(char *str);
DLLEXPORT void DLLCALL strip_exascii(char *str);
/* load_cfg.c */
DLLEXPORT BOOL DLLCALL load_cfg(scfg_t* cfg, char* text[]);
DLLEXPORT void DLLCALL free_cfg(scfg_t* cfg);
DLLEXPORT void DLLCALL free_text(char* text[]);
/* scfglib1.c */
DLLEXPORT void prep_dir(char* base, char* dir);
/* date_str.c */
/* ASCII date (MM/DD/YY) to unix conversion */
......@@ -767,7 +774,7 @@ extern "C" {
DLLEXPORT BOOL DLLCALL hacklog(scfg_t* cfg, char* prot, char* user, char* text,
char* host, SOCKADDR_IN* addr);
DLLEXPORT char* DLLCALL remove_ctrl_a(char* instr, char* outstr);
DLLEXPORT char * DLLCALL remove_ctrl_a(char* instr, char* outstr);
#ifdef JAVASCRIPT
......@@ -812,8 +819,6 @@ extern "C" {
int nopen(char *str, int access);
FILE * fnopen(int *file, char *str, int access);
int bstrlen(char *str);
void strip_ctrl(char *str);
void strip_exascii(char *str);
char * ultoac(ulong l,char *str);
void truncsp(char *str); /* Truncates white spaces off end of str */
void backslash(char *str);
......
......@@ -85,7 +85,6 @@ BOOL read_file_cfg(scfg_t* cfg, read_cfg_text_t* txt);
BOOL read_msgs_cfg(scfg_t* cfg, read_cfg_text_t* txt);
BOOL read_chat_cfg(scfg_t* cfg, read_cfg_text_t* txt);
BOOL read_attr_cfg(scfg_t* cfg, read_cfg_text_t* txt);
void prep_dir(char* base, char* dir);
void prep_path(char* path);
void make_data_dirs(scfg_t* cfg);
......
......@@ -40,7 +40,7 @@
const char *scfgnulstr="";
void prep_dir(char* base, char* path)
void DLLEXPORT prep_dir(char* base, char* path)
{
#ifdef __unix__
char *p;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment