WIP
This commit is contained in:
43
src/data.h
Normal file
43
src/data.h
Normal file
@@ -0,0 +1,43 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
|
||||
namespace dbgui::data
|
||||
{
|
||||
struct DataSource
|
||||
{
|
||||
enum class Type : uint8_t
|
||||
{
|
||||
reg,
|
||||
// TODO: special IP/SP source? so that scope selection can apply to that?
|
||||
// variable,
|
||||
// const,
|
||||
};
|
||||
|
||||
struct Reg
|
||||
{
|
||||
// TODO: identify through names?
|
||||
uint16_t set;
|
||||
uint16_t idx;
|
||||
};
|
||||
|
||||
Type type;
|
||||
std::variant<std::monostate, Reg> data;
|
||||
};
|
||||
|
||||
struct DataNode
|
||||
{
|
||||
size_t id;
|
||||
};
|
||||
|
||||
struct DataResult
|
||||
{
|
||||
// TODO: needs indicator that data was failed to be retrieved
|
||||
size_t id;
|
||||
std::vector<uint8_t> data;
|
||||
};
|
||||
|
||||
} // namespace dbgui::data
|
||||
Reference in New Issue
Block a user