summaryrefslogtreecommitdiff
path: root/ui/commands.h
diff options
context:
space:
mode:
authorRyan Snyder <ryan@vector35.com>2025-02-24 15:14:19 -0500
committerRyan Snyder <ryan@vector35.com>2025-03-17 10:07:02 -0400
commit1652efdc43aa3acbd570c1f042a35da458538bb4 (patch)
tree72c5ec04401432691a78acdd0d29b1fc7ecc07de /ui/commands.h
parent996ad28c29cd242b672041ae3b08e97a0e160a85 (diff)
core: initial union support with C++ API
Diffstat (limited to 'ui/commands.h')
-rw-r--r--ui/commands.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/commands.h b/ui/commands.h
index 662e1d6c..c8634bf7 100644
--- a/ui/commands.h
+++ b/ui/commands.h
@@ -47,6 +47,16 @@ bool BINARYNINJAUIAPI eligibleToForceVariableVersion(View* parent, HighlightToke
bool BINARYNINJAUIAPI clearVariableVersion(View* parent, HighlightTokenState& highlight);
bool BINARYNINJAUIAPI eligibleToClearVariableVersion(View* parent, HighlightTokenState& highlight);
+struct BINARYNINJAUIAPI FieldResolutionState
+{
+ std::vector<std::pair<std::string, FieldResolutionInfoRef>> goodFieldResolutions = {};
+ std::vector<std::pair<std::string, FieldResolutionInfoRef>> badFieldResolutions = {};
+
+ size_t registeredGoodFieldResolutions = 0;
+ size_t registeredBadFieldResolutions = 0;
+
+ void bindDynamicActions(View* view, HighlightTokenState& highlight);
+};
bool BINARYNINJAUIAPI getEnumSelection(QWidget* parent, BinaryViewRef data, FunctionRef func, uint64_t constValue,
TypeRef& selectedEnum, bool checkValue, bool canTruncate);