diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-04-20 23:25:31 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-04-20 23:25:31 -0400 |
| commit | d50d190f297afcb9621b39eb1d351e9eae96271b (patch) | |
| tree | 1962dd1f0ecb6101f25b63f57cb638685937537c /binaryninjaapi.h | |
| parent | 0ed147b61a1418915c1e243e05aa05e736b6a73f (diff) | |
Renaming and adding variable identifiers
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index c6ac8aa3..0371c4ff 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1812,7 +1812,7 @@ namespace BinaryNinja struct Variable: public BNVariable { Variable(); - Variable(BNVariableSourceType type, uint32_t index, uint64_t identifier); + Variable(BNVariableSourceType type, uint32_t index, uint64_t storage); Variable(const BNVariable& var); Variable& operator=(const Variable& var); @@ -1820,6 +1820,9 @@ namespace BinaryNinja bool operator==(const Variable& var) const; bool operator!=(const Variable& var) const; bool operator<(const Variable& var) const; + + uint64_t ToIdentifier() const; + static Variable FromIdentifier(uint64_t id); }; struct VariableNameAndType @@ -1949,8 +1952,10 @@ namespace BinaryNinja bool GetStackVariableAtFrameOffset(Architecture* arch, uint64_t addr, int64_t offset, VariableNameAndType& var); std::map<Variable, VariableNameAndType> GetVariables(); - void CreateAutoVariable(const Variable& var, Ref<Type> type, const std::string& name, bool singleOnly = false); - void CreateUserVariable(const Variable& var, Ref<Type> type, const std::string& name, bool singleOnly = false); + void CreateAutoVariable(const Variable& var, Ref<Type> type, const std::string& name, + bool ignoreDisjointUses = false); + void CreateUserVariable(const Variable& var, Ref<Type> type, const std::string& name, + bool ignoreDisjointUses = false); void DeleteAutoVariable(const Variable& var); void DeleteUserVariable(const Variable& var); Ref<Type> GetVariableType(const Variable& var); |
