123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #ifndef UPDATE_ENGINE_IMAGE_PROPERTIES_H_
- #define UPDATE_ENGINE_IMAGE_PROPERTIES_H_
- #include <string>
- namespace chromeos_update_engine {
- class SystemState;
- struct ImageProperties {
-
- std::string product_id;
-
- std::string canary_product_id;
-
- std::string system_id;
-
- std::string version;
-
- std::string system_version;
-
- std::string product_components;
-
-
- std::string build_fingerprint;
-
-
- std::string build_type;
-
- std::string board;
-
- std::string current_channel;
-
-
- bool allow_arbitrary_channels = false;
-
- std::string omaha_url;
- };
- struct MutableImageProperties {
-
- std::string target_channel;
-
-
- bool is_powerwash_allowed{false};
- };
- ImageProperties LoadImageProperties(SystemState* system_state);
- MutableImageProperties LoadMutableImageProperties(SystemState* system_state);
- bool StoreMutableImageProperties(SystemState* system_state,
- const MutableImageProperties& properties);
- void LogImageProperties();
- namespace test {
- void SetImagePropertiesRootPrefix(const char* test_root_prefix);
- }
- }
- #endif
|