2#include "vsdk_config.h"
7#include <unordered_map>
12static constexpr const char *uboot_config = vsdk::config::system::uboot_config_path;
16class libuboot_raii final :
public libuboot_raii_interface {
19 ~libuboot_raii()
noexcept override;
26 void set_value(std::string_view var, std::string_view value)
override;
33 void get_value(std::string_view var, std::string &value)
override;
41 libuboot_raii &
operator=(
const libuboot_raii &) =
delete;
42 libuboot_raii &
operator=(libuboot_raii &&) =
delete;
49 void get_vars(std::unordered_map<std::string, std::string> &environment)
override;
53 std::recursive_mutex _access;
libuboot_raii & operator=(libuboot_raii &&)=delete
void set_value(std::string_view var, std::string_view value) override
Set a uboot environment variable.
libuboot_raii(libuboot_raii &&)=delete
void get_vars(std::unordered_map< std::string, std::string > &environment) override
Populate a map with the current uboot environment variables.
libuboot_raii(const libuboot_raii &)=delete
void get_value(std::string_view var, std::string &value) override
Get the value of a uboot environment variable.
libuboot_raii & operator=(const libuboot_raii &)=delete
Include this file to your file so you have access to fmtlib header-only implementation.
Any entities that belong to the system library.