Tweak some names in a few places, encapsulate the uc_context struct to hide it from users for some reason
This commit is contained in:
@@ -245,6 +245,15 @@ struct uc_struct {
|
||||
uint64_t next_pc; // save next PC for some special cases
|
||||
};
|
||||
|
||||
// Metadata stub for the variable-size cpu context used with uc_context_*()
|
||||
struct uc_context {
|
||||
uc_arch arch;
|
||||
uc_mode mode;
|
||||
size_t size;
|
||||
bool used;
|
||||
char data[0];
|
||||
};
|
||||
|
||||
// check if this address is mapped in (via uc_mem_map())
|
||||
MemoryRegion *memory_mapping(struct uc_struct* uc, uint64_t address);
|
||||
|
||||
|
||||
@@ -273,14 +273,9 @@ typedef enum uc_query_type {
|
||||
UC_QUERY_PAGE_SIZE,
|
||||
} uc_query_type;
|
||||
|
||||
// Metadata stub for the variable-size cpu context used with uc_context_*()
|
||||
typedef struct uc_context {
|
||||
uc_arch arch;
|
||||
uc_mode mode;
|
||||
size_t size;
|
||||
bool used;
|
||||
char data[0];
|
||||
} uc_context;
|
||||
// Opaque storage for CPU context, used with uc_context_*()
|
||||
struct uc_context;
|
||||
typedef struct uc_context uc_context;
|
||||
|
||||
/*
|
||||
Return combined API version & major and minor version numbers.
|
||||
|
||||
Reference in New Issue
Block a user