improved path mgmt
This commit is contained in:
@@ -43,10 +43,12 @@
|
||||
#include <string.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#include "dpm_interface_helpers.hpp"
|
||||
|
||||
class ConfigManager {
|
||||
public:
|
||||
// Constructor
|
||||
ConfigManager(const std::string& config_dir = "/etc/dpm/conf.d/");
|
||||
ConfigManager( const std::string& config_dir = DPMDefaultPaths::CONFIG_DIR );
|
||||
|
||||
// Load all configuration files from the config directory
|
||||
bool loadConfigurations();
|
||||
|
||||
@@ -43,3 +43,9 @@ struct CommandArgs {
|
||||
|
||||
// parse dpm cli arguments into a serialized structure
|
||||
CommandArgs parse_args( int argc, char * argv[] );
|
||||
|
||||
// default system paths
|
||||
struct DPMDefaultPaths {
|
||||
static const std::string MODULE_PATH;
|
||||
static const std::string CONFIG_DIR;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user