summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2025-10-15 21:36:02 -0400
committerAlexander Taylor <alex@vector35.com>2025-10-15 22:03:27 -0400
commit96c56a41f73d9ac1a5ba7e6efd06f0145b834f24 (patch)
treed59ed094b5e0cef97c46e30e156c2ccccb748015 /binaryninjacore.h
parent3f39c3fc3d5603bba111502eee26b5fbbb0077fe (diff)
Required API changes for Enterprise find files.
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 146de0aa..9f544b9f 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -37,7 +37,7 @@
// Current ABI version for linking to the core. This is incremented any time
// there are changes to the API that affect linking, including new functions,
// new types, or modifications to existing functions or types.
-#define BN_CURRENT_CORE_ABI_VERSION 136
+#define BN_CURRENT_CORE_ABI_VERSION 137
// Minimum ABI version that is supported for loading of plugins. Plugins that
// are linked to an ABI version less than this will not be able to load and
@@ -312,6 +312,14 @@ extern "C"
typedef struct BNIndirectBranchInfo BNIndirectBranchInfo;
typedef struct BNArchitectureAndAddress BNArchitectureAndAddress;
+ typedef struct BNRemoteFileSearchMatch
+ {
+ char* projectId;
+ char* projectName;
+ char* fileId;
+ char* fileName;
+ } BNRemoteFileSearchMatch;
+
typedef bool(*BNProgressFunction)(void*, size_t, size_t);
//! Console log levels
@@ -8240,6 +8248,8 @@ extern "C"
BINARYNINJACOREAPI BNCollaborationUser* BNRemoteGetUserByUsername(BNRemote* remote, const char* username);
BINARYNINJACOREAPI BNCollaborationUser* BNRemoteGetCurrentUser(BNRemote* remote);
BINARYNINJACOREAPI bool BNRemoteSearchUsers(BNRemote* remote, const char* prefix, char*** userIds, char*** usernames, size_t* count);
+ BINARYNINJACOREAPI BNRemoteFileSearchMatch* BNRemoteFindFiles(BNRemote* remote, const char* name, size_t* count);
+ BINARYNINJACOREAPI void BNFreeRemoteFileSearchMatchList(BNRemoteFileSearchMatch* matches, size_t count);
BINARYNINJACOREAPI bool BNRemotePullUsers(BNRemote* remote, BNProgressFunction progress, void* progressContext);
BINARYNINJACOREAPI BNCollaborationUser* BNRemoteCreateUser(BNRemote* remote, const char* username, const char* email, bool isActive, const char* password, const uint64_t* groupIds, size_t groupIdCount, const uint64_t* userPermissionIds, size_t userPermissionIdCount);
BINARYNINJACOREAPI bool BNRemotePushUser(BNRemote* remote, BNCollaborationUser* user, const char** extraFieldKeys, const char** extraFieldValues, size_t extraFieldCount);