Veethree D7 SDK
Loading...
Searching...
No Matches
bootloader_manager.h
Go to the documentation of this file.
1
5#ifndef BOOTLOADERMANAGER_H
6#define BOOTLOADERMANAGER_H
7
8#include <cstdint>
9#include <map>
10#include <memory>
11#include <string>
12#include <string_view>
13#include <unordered_map>
14
15namespace vsdk::sys {
16
21
57public:
67 static void set_value(std::string_view var, uint64_t value, bool hex = false);
75 static void set_value(std::string_view var, std::string_view value);
88 static void get_value(std::string_view var, uint64_t& value);
96 static void get_value(std::string_view var, std::string& value);
97
102 static void list_vars(std::unordered_map<std::string, std::string>& environment);
103};
104
106
107} // namespace vsdk::sys
108
109#endif // BOOTLOADERMANAGER_H
The bootloader_manager class.
Definition bootloader_manager.h:56
static void get_value(std::string_view var, uint64_t &value)
Get a bootloader variable value.
static void get_value(std::string_view var, std::string &value)
Get a bootloader variable value.
static void set_value(std::string_view var, std::string_view value)
Set a bootloader variable value.
static void list_vars(std::unordered_map< std::string, std::string > &environment)
Get all the bootloader variable names and their values.
static void set_value(std::string_view var, uint64_t value, bool hex=false)
Set a bootloader variable value.
Any entities that belong to the system library.