#ifndef SERVER_H #define SERVER_H #define SDEBUG 1 #if SDEBUG extern FILE *fdb; #endif enum content_types { TEXT = 1, HTML, BIN, GZ, XML }; #define BUFSIZE 8192 void content_line (int conttype); int list_files (char **listbuf, int html, int gfn, int version, int wfu); int check_for_db_file (const char *dbase); void emit_function_info (char **fnames, int nfiles, int version, int html); int ggz_stream_file (const char *fname, int opt, int version); int ggz_stream_series (const char *dbase, const char *series, int nbo); int nbo_send_file (const char *dbase); int stream_function_file (char *fname); char *delchar (int c, char *str); const char *month_name (int mon); char *my_strdup (const char *src); int validate_uploaded_file (const char *fname); #endif /* SERVER_H */