1 #ifndef __SPIN_DB_API_H_
2 #define __SPIN_DB_API_H_
4 #include "spinConstDB.hh"
6 #include "spinDbV124.hh"
9 static const time_t SpinDbMaxUnixTime = 1988150400;
11 static const int SpinDbMaxDbPathLen = 1024;
12 static const int SpinDbMaxKeyLength = 256;
13 static const char SpinDbKeyFormat[] =
"#%s/%s";
16 enum SpinDbAction { GetDB , SetDB , PrintTree , PrintHistory, PrintConfig };
19 #define dprintf(str...) if(!quietMode) fprintf(stderr,str)
21 #define dprintf(str...) ;
24 time_t getTimeStamp(
const char *dbTimeFormat[] ,
const char *timestr);
25 char *fmtSqlTime(
const char* sqltime);
27 extern int verboseMode;
28 extern int quietMode ;