#ifndef _MAINSQL_H_ #define _MAINSQL_H_ #ifdef __cplusplus extern "C" { #endif SDDAS_BOOL MySQL_dbIsLocal(); SDDAS_BOOL MySQL_dbIsReadOnly (const char* tablename); SDDAS_BOOL MySQL_TestDBIntegrity (); SDDAS_BOOL MySQL_dbCreate (const char *filename); void MySQL_dbSetDatabaseName (const char *filename); const char* MySQL_dbGetDatabaseName(); SDDAS_BOOL MySQL_dbInitializeMsg (); void MySQL_dbInitialize (); void MySQL_dbClose (); int MySQL_dbQueryExec (const char *query_str); void *MySQL_dbQuery (const char *query_str); void *MySQL_dbQueryStore (const char *query_str); unsigned int MySQL_dbBadQuery (); void MySQL_dbFreeResult (void *result); void *MySQL_dbFetchRow (void *result); int MySQL_dbNumberRows (void *result); int MySQL_dbNumberFields (void *result); char *MySQL_dbFieldName(void *result, int i); SDDAS_BOOL MySQL_dbInitializeRemoteMsg (const char *host, const char *user, const char *passwd, const char *db, const unsigned int port); SDDAS_BOOL MySQL_dbConnected (); SDDAS_BOOL MySQL_dbTableExists (const char *table_name); #ifdef __cplusplus } #endif #endif