firmware.h
Go to the documentation of this file.
72 static boost::system::error_code requestFirmware(dpyFirmware::FirmwareVersionPath& image, enum dpyFirmware::Device device, enum dpyFirmware::Rfs rfs);
73 static boost::system::error_code parseVersionFile(std::string path, dpyFirmware::FirmwareVersionPath& image);
89 static bool write_release_txt(const enum dpyFirmware::Device device, const std::string version_to_write){
90 std::string path = SystemConfiguration::getInstance()->getConfigurationValue("DEVICE_UPDATES_PATH") + deviceToString(device) + "/";
103 std::string path = SystemConfiguration::getInstance()->getConfigurationValue("DEVICE_UPDATES_PATH") + deviceToString(device) + "/";
std::string full_path
Path and name of the firmware.
Definition: firmware.h:23
This class implementes the read/write operations to work with text files stored in the file sytem...
Definition: files.h:43
Defines a class for executing commands and getting output.
static SystemConfiguration * getInstance()
Definition: firmware.h:19
std::string version
Firmware version.
Definition: firmware.h:24
std::string version
firmware version
Definition: firmware.h:31
std::string bootloader
bootloader
Definition: firmware.h:35
Struct which contains all fields needed to can upgrade devices firmware.
Definition: firmware.h:22
Rfs
Defines the possible root file systems where binaries are located.
Definition: firmware.h:54
Definition: firmware.h:49
Class to request upgrading firmware by device in case any is availability.
Definition: firmware.h:67
A common files library.
std::string getConfigurationValue(const std::string ¶meter)
Device
Defines the possible devices whose firmware can be upgraded.
Definition: firmware.h:39