summaryrefslogtreecommitdiff
path: root/server/src/database.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/database.h')
-rw-r--r--server/src/database.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/database.h b/server/src/database.h
index 0958b15..8200129 100644
--- a/server/src/database.h
+++ b/server/src/database.h
@@ -43,6 +43,8 @@ public:
};
typedef std::map< std::string, Value > Values;
+typedef std::vector< std::string > Fieldnames;
+
class Database {
public:
Database(std::string hostname = "localhost",
@@ -59,7 +61,7 @@ public:
// Get a list of values from the db
Values getValues(std::string cpr,
- std::vector< std::string > &fieldnames,
+ Fieldnames &fieldnames,
time_t oldest = 0);
// Connect to the db