#ifndef _LIBSERVERWRAP_H_ #define _LIBSERVERWRAP_H_ #include "SDDAS_types.h" #ifdef __cplusplus extern "C" { #endif SDDAS_BOOL SwRI_TestDBIntegrity (); SDDAS_BOOL SwRI_dbInitializeMsg (); SDDAS_BOOL SwRI_dbIsReadOnly(const char *); void SwRI_dbInitialize (); void SwRI_dbClose (); char* SwRI_dbFilename (SDDAS_ULONG key); char* SwRI_dbFilename_r (SDDAS_ULONG key, char *fname); int SwRI_dbIDFSGetRealTimeFile (SDDAS_ULONG, RequestedDataType, const char *, char *, char *); int SwRI_dbIDFSGetFile (SDDAS_ULONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, RequestedDataType, const char *, char *, char *); int SwRI_dbIDFSGetFileAndTimes (SDDAS_ULONG, SDDAS_SHORT *, SDDAS_SHORT *, SDDAS_LONG *, SDDAS_SHORT, SDDAS_SHORT, SDDAS_LONG, RequestedDataType, const char *, char *, char *); char **SwRI_dbHierarchy (int numargs, char **args); char *SwRI_dbHierarchyString (SDDAS_ULONG); void SwRI_dbFreeHierarchyList (char **ret_val); char *SwRI_dbCfgItem (SDDAS_ULONG, const char *, int); char *SwRI_dbCfgPath (SDDAS_ULONG, const char *); SDDAS_ULONG SwRI_dbGetDataKey (char *p, char *m, char *e, char *i, char *v); char* SwRI_dbVirtualName(SDDAS_ULONG data_key); int SwRI_dbVirtualName_r (SDDAS_ULONG data_key, char *, int); SDDAS_BOOL SwRI_dbKeyToStrings (SDDAS_ULONG data_key, char *p, char *m, char *e, char *i, char *v); SDDAS_BOOL SwRI_dbKeyToStrings_r (SDDAS_ULONG data_key, char *p, char *m, char *e, char *i, char *v); void *SwRI_dbQuery (const char *query_str); int SwRI_dbQueryExec (const char *query_str); void *SwRI_dbQueryStore (const char *query_str); unsigned int SwRI_dbBadQuery (); void SwRI_dbFreeResult (void *result); void *SwRI_dbFetchRow (void *result); int SwRI_dbNumberRows (void *result); int SwRI_dbNumberFields (void *result); char *SwRI_dbFieldName(void *result, int i); char *SwRI_dbErrorMsg (); void SwRI_SetErrorString (char *error_str); SDDAS_BOOL SwRI_dbInitializeRemoteMsg (const char *host, const char *user, const char *passwd, const char *db, const unsigned int port); SDDAS_BOOL SwRI_dbConnected (); int SwRI_get_first_vidf_times (SDDAS_ULONG data_key, SDDAS_SHORT *btime_yr, SDDAS_SHORT *btime_day, SDDAS_ULONG *btime_msec); #ifdef __cplusplus } #endif #endif