diff options
| author | Alexander Khosrowshahi <alexk@vector35.com> | 2025-06-09 12:27:47 -0400 |
|---|---|---|
| committer | Alex Khosrowshahi <71569995+spoonmilk@users.noreply.github.com> | 2025-06-30 08:09:24 -0700 |
| commit | dc2911dac66c838e508fc3872bcbaee62e6d482a (patch) | |
| tree | bccdbc9bd81838267b3f56950df497c4b87c010f /binaryninjacore.h | |
| parent | ee50478d7b494ae4e62ae08986ce0b9229bc0fbc (diff) | |
Add Checkbox input support to python api
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index dc6f293d..9e72f01b 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -3037,7 +3037,8 @@ extern "C" ChoiceFormField, OpenFileNameFormField, SaveFileNameFormField, - DirectoryNameFormField + DirectoryNameFormField, + CheckboxFormField } BNFormInputFieldType; typedef struct BNFormInputField @@ -3083,6 +3084,7 @@ extern "C" bool (*getSaveFileNameInput)( void* ctxt, char** result, const char* prompt, const char* ext, const char* defaultName); bool (*getDirectoryNameInput)(void* ctxt, char** result, const char* prompt, const char* defaultName); + bool (*getCheckboxInput)(void* ctxt, int64_t* result, const char* prompt, const char* title, const int64_t* defaultChoice); bool (*getFormInput)(void* ctxt, BNFormInputField* fields, size_t count, const char* title); BNMessageBoxButtonResult (*showMessageBox)( void* ctxt, const char* title, const char* text, BNMessageBoxButtonSet buttons, BNMessageBoxIcon icon); @@ -7312,6 +7314,7 @@ extern "C" BINARYNINJACOREAPI bool BNGetSaveFileNameInput( char** result, const char* prompt, const char* ext, const char* defaultName); BINARYNINJACOREAPI bool BNGetDirectoryNameInput(char** result, const char* prompt, const char* defaultName); + BINARYNINJACOREAPI bool BNGetCheckboxInput(int64_t* result, const char* prompt, const char* title, const int64_t* defaultChoice); BINARYNINJACOREAPI bool BNGetFormInput(BNFormInputField* fields, size_t count, const char* title); BINARYNINJACOREAPI void BNFreeFormInputResults(BNFormInputField* fields, size_t count); BINARYNINJACOREAPI BNMessageBoxButtonResult BNShowMessageBox( |
