X-Git-Url: http://pilppa.org/gitweb/?p=libplp.git;a=blobdiff_plain;f=src%2FDeviceConfig.hh;h=841a3693ff5451fb3562ec727ab076d190121328;hp=bc8241603753689f5022b3f72c2bbe693425e87f;hb=591e8477b0cd8a038100ac67bed042404f544fde;hpb=23a30eb765fc6aaf347da839567140ae41e8cc6b diff --git a/src/DeviceConfig.hh b/src/DeviceConfig.hh index bc82416..841a369 100644 --- a/src/DeviceConfig.hh +++ b/src/DeviceConfig.hh @@ -12,7 +12,6 @@ extern "C" { #include - #include "config.h" #include } @@ -36,10 +35,15 @@ const std::string CALCULATION_TYPE_NAMES_ARRAY[] = {"sum", "delta", "min", "max" namespace plp { struct ConfigHandle { public: - ConfigHandle(uci_context *ctx_param, uci_package *pkg_param); + ConfigHandle(uci_context *ctx_param, + uci_package *pkg_param, + const char *short_fname_param, + const char *full_fname_param); ~ConfigHandle(); struct uci_context *_ctx; struct uci_package *_pkg; + char *short_fname; + char *full_fname; }; class DeviceConfig { @@ -51,8 +55,7 @@ namespace plp { static DeviceConfig *get_device_config(std::string device_id); std::string get_config_value(std::string key); void set_config_value(std::string key, - std::string value, - bool save_immediately); + std::string value); EnumSummaryCalculationType get_summary_calculation_type(); private: static std::string store_base_dir;