an implementation of libuboot_raii_interface that interacts with a real uboot environment
#include <libuboot_raii.h>
an implementation of libuboot_raii_interface that interacts with a real uboot environment
◆ libuboot_raii() [1/2]
| vsdk::sys::libuboot_raii::libuboot_raii |
( |
const libuboot_raii & | | ) |
|
|
delete |
◆ libuboot_raii() [2/2]
◆ get_value()
| void vsdk::sys::libuboot_raii::get_value |
( |
std::string_view | var, |
|
|
std::string & | value ) |
|
overridevirtual |
Get the value of a uboot environment variable.
- Parameters
-
| var | Name of the variable |
| value | [out] String to store the value of the variable |
Implements libuboot_raii_interface.
◆ get_vars()
| void vsdk::sys::libuboot_raii::get_vars |
( |
std::unordered_map< std::string, std::string > & | environment | ) |
|
|
overridevirtual |
Populate a map with the current uboot environment variables.
- Parameters
-
| environment | Map to store the key=>value pairs |
Implements libuboot_raii_interface.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_value()
| void vsdk::sys::libuboot_raii::set_value |
( |
std::string_view | var, |
|
|
std::string_view | value ) |
|
overridevirtual |
Set a uboot environment variable.
- Parameters
-
| var | Name of the variable |
| value | Value to set the variable |
Implements libuboot_raii_interface.
The documentation for this class was generated from the following file: