aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/base/database.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/base/database.hpp b/src/base/database.hpp
index c7bb00b8..08087c7f 100644
--- a/src/base/database.hpp
+++ b/src/base/database.hpp
@@ -94,14 +94,10 @@ namespace usdx
static StatDatabase* instance;
+ protected:
int get_version(void);
void set_version(int version);
-#ifdef STAT_DATABASE_TEST
- // for testing private members
- friend class StatDatabaseTest;
-#endif
-
public:
static StatDatabase* get_instance();
@@ -145,6 +141,11 @@ namespace usdx
* - the date string with the terminating '\\0'
*/
char* format_date(char* time, size_t max, time_t timestamp);
+
+#ifdef STAT_DATABASE_TEST
+ // for testing private members
+ friend class StatDatabaseTest;
+#endif
};
/* Element for linked list with pointer to next */