{"UMASK", "umask"},
};
-typedef std::function<void(
- const std::string& line, const std::string& key, const std::string& value)>
- ConfigLineHandler;
+using ConfigLineHandler = std::function<void(
+ const std::string& line, const std::string& key, const std::string& value)>;
bool
parse_bool(const std::string& value,
void set_primary_config_path(std::string path);
void set_secondary_config_path(std::string path);
- typedef std::function<void(const std::string& key,
- const std::string& value,
- const std::string& origin)>
- ItemVisitor;
+ using ItemVisitor = std::function<void(const std::string& key,
+ const std::string& value,
+ const std::string& origin)>;
// Set config values from a configuration file.
//
namespace Util {
-typedef std::function<void(double)> ProgressReceiver;
-typedef std::function<void(std::shared_ptr<CacheFile>)> CacheFileVisitor;
-typedef std::function<void(const std::string& /*dir_path*/,
- const ProgressReceiver& /*progress_receiver*/)>
- SubdirVisitor;
+using ProgressReceiver = std::function<void(double)>;
+using CacheFileVisitor = std::function<void(std::shared_ptr<CacheFile>)>;
+using SubdirVisitor =
+ std::function<void(const std::string& /*dir_path*/,
+ const ProgressReceiver& /*progress_receiver*/)>;
// Get base name of path.
nonstd::string_view base_name(nonstd::string_view path);
// Returns a formatted version of a statistics value, or NULL if the statistics
// line shouldn't be printed. Caller frees.
-typedef char* (*format_fn)(uint64_t value);
+using format_fn = char* (*)(uint64_t value);
static char* format_size_times_1024(uint64_t size);
static char* format_timestamp(uint64_t timestamp);