db/update/Config: use struct ConfigData

This commit is contained in:
Max Kellermann
2018-07-17 22:41:28 +02:00
parent 338a6f2a96
commit ad866f7a7d
5 changed files with 23 additions and 15 deletions
+3 -1
View File
@@ -22,6 +22,8 @@
#include "check.h"
struct ConfigData;
struct UpdateConfig {
#ifndef _WIN32
static constexpr bool DEFAULT_FOLLOW_INSIDE_SYMLINKS = true;
@@ -31,7 +33,7 @@ struct UpdateConfig {
bool follow_outside_symlinks = DEFAULT_FOLLOW_OUTSIDE_SYMLINKS;
#endif
UpdateConfig();
explicit UpdateConfig(const ConfigData &config);
};
#endif