summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2023-01-14 16:01:59 -0500
committerAlexander Taylor <alex@vector35.com>2023-11-06 15:52:36 -0500
commitb270d7ebe1e2a406e1f7f14807987d24b0c4a846 (patch)
treea75e7a0076e9c8d01be378f96aebcf483defa2f6 /ui
parent6262d76df45950bb75fb3a0bc5a1a45a5da00e00 (diff)
Allow setting UIDF on any mlil/hlil usage
Diffstat (limited to 'ui')
-rw-r--r--ui/commands.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/commands.h b/ui/commands.h
index fb4a1ba2..62016bdb 100644
--- a/ui/commands.h
+++ b/ui/commands.h
@@ -30,8 +30,8 @@ bool BINARYNINJAUIAPI createInferredMember(QWidget* parent, BinaryViewRef data,
bool BINARYNINJAUIAPI createStructMembers(
QWidget* parent, BinaryViewRef data, HighlightTokenState& highlight, FunctionRef func);
-bool BINARYNINJAUIAPI inputPossibleValueSet(QWidget* parent, BinaryViewRef data, FunctionRef currentFunction,
- HighlightTokenState& highlight, uint64_t defSiteAddress, size_t ilInstructionIndex = BN_INVALID_EXPR);
+bool BINARYNINJAUIAPI inputPossibleValueSet(QWidget* parent, BinaryViewRef data, FunctionRef currentFunction, BNFunctionGraphType funcType,
+ const BinaryNinja::Variable& var, size_t ilInstructionIndex = BN_INVALID_EXPR);
bool BINARYNINJAUIAPI getEnumSelection(QWidget* parent, BinaryViewRef data, FunctionRef func, uint64_t constValue,
TypeRef& selectedEnum, bool checkValue, bool canTruncate);
@@ -56,6 +56,12 @@ std::string BINARYNINJAUIAPI createStructureName(BinaryViewRef data);
std::optional<BinaryNinja::Variable> BINARYNINJAUIAPI getSplitVariableForAssignment(
FunctionRef func, BNFunctionGraphType ilType, uint64_t location, const BinaryNinja::Variable& var);
+std::optional<size_t> getVariableDefinitionInstructionIndex(
+ FunctionRef func, BNFunctionGraphType funcType, const BinaryNinja::Variable& var, size_t ilInstructionIndex);
+std::optional<size_t> getVariableDefinitionAddress(
+ FunctionRef func, BNFunctionGraphType funcType, const BinaryNinja::Variable& var, size_t ilInstructionIndex);
+
+
/*!
@}
*/