/* This file was automatically generated. Do not edit! */ void db_upgrade_schema_22(void); void update_file_table_with_lastcn(void); void db_upgrade_schema_21(void); void db_upgrade_schema_20(void); int cvs_previous_version(char *zVers,const char *zFile); int is_file_available(const char *zFile); void db_upgrade_schema_9(void); void db_upgrade_schema_8(void); void db_upgrade_schema_7(void); void db_upgrade_schema_6(void); void db_upgrade_schema_5(void); void db_upgrade_schema_4(void); void db_upgrade_schema_3(void); void db_upgrade_schema_2(void); void db_upgrade_schema_1(void); int bprintf(char *zBuf,int nBuflen,const char *zFormat,...); int is_eow(const char *z,const char *zEnd); int ndigit(const char *z); void xref_checkin_comment(int cn,const char *zMsg); void initialize_wiki_pages(void); void db_init(void); void srchFunc(sqlite3_context *context,int argc,sqlite3_value **argv); void db_add_functions(void); char *verify_sql_statement(char *zSql); const char *cgi_parameter(const char *zName,const char *zDefault); #define PD(x,y) cgi_parameter((x),(y)) #define MX_AUX 10 #define P(x) cgi_parameter((x),0) time_t parse_time(const char *zTime); void db_callback_query(int(*xCallback)(void *,int,char **,char **),void *pArg,const char *zFormat,...); const char *db_config(const char *zName,const char *zDefault); void db_query_free(char **az); char *db_query_check(const char *zFormat,...); int db_exists(const char *zFormat,...); void db_execute(const char *zFormat,...); char *db_short_query(const char *zFormat,...); char **db_query(const char *zFormat,...); int db_restrict_access(int onoff); int sqlite3StrICmp(const char *,const char *); typedef struct Global Global; typedef struct Scm Scm; struct Scm { const char *zSCM; /* Which SCM subsystem is supported (i.e. "cvs") */ const char *zName; /* User-readable SCM name (i.e. "Subversion") */ int canFilterModules; /* non-zero if the SCM can filter modules */ int (*pxHistoryUpdate)(int isReread); int (*pxDiffVersions)(const char *zOldVersion, const char *zNewVersion, const char *zFile); int (*pxDiffChng)(int cn, int bRaw); int (*pxIsFileAvailable)(const char *zFile); int (*pxDumpVersion)(const char *zVers, const char *zFile, int bRaw); int (*pxUserRead)(); int (*pxUserWrite)(const char *zOmit); }; struct Global { int argc; char **argv; /* Command-line arguments to the program */ struct Scm scm; /* SCM-specific variables, callbacks, etc */ const char *zName; /* Base name of the program */ const char *zUser; /* Name of the user */ const char *zHumanName; /* Human readable name of the user */ char *zBaseURL; /* Absolute base URL for any CVSTrac page */ char *zLinkURL; /* URL prefixed to all output URLs */ char *zPath; /* The URL for the current page */ char *zExtra; /* Additional path information following g.zPath */ int okCheckout; /* True if the user has CVS checkout permission */ int okCheckin; /* True if the user has CVS checkin permission */ int okNewTkt; /* True if the user can create new tickets */ int okRead; /* True if the user may view tickets */ int okPassword; /* True if the user may change his password */ int okWrite; /* True if the user can edit tickets */ int okAdmin; /* True if the user has administrative permission */ int okSetup; /* True if the user has setup permission */ int okRdWiki; /* True if the user can read wiki pages */ int okWiki; /* True if the user can write wiki pages */ int okDelete; /* True if able to delete wiki or tickets */ int okQuery; /* True if able to create new reports */ int isAnon; /* Anonymous user (not logged in) */ int isConst; /* True if the page is constant and cacheable. */ int okTicketLink; /* True for ticket info link titles */ int okCheckinLink; /* True for chng info link titles */ int noFollow; /* Output links with rel="nofollow" */ /* Storage for the aux() and/or option() SQL function arguments */ int nAux; /* Number of distinct aux() or option() values */ const char *azAuxName[MX_AUX]; /* Name of each aux() or option() value */ char *azAuxParam[MX_AUX]; /* Param of each aux() or option() value */ const char *azAuxVal[MX_AUX]; /* Value of each aux() or option() value */ const char **azAuxOpt[MX_AUX]; /* Options of each option() value */ int anAuxCols[MX_AUX]; /* Number of columns for option() values */ }; extern Global g; char *mprintf(const char *zFormat,...); sqlite3 *db_open(void); void db_close(void); void cgi_reply(void); void cgi_append_header(const char *zLine); void cgi_printf(const char *zFormat,...); void cgi_set_content_type(const char *zType); void cgi_set_status(int iStat,const char *zStat); void cgi_reset_content(void); char *vmprintf(const char *zFormat,va_list ap); void db_err(const char *zReason,const char *zQuery,const char *zFormat,...);