summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-08-27 21:02:59 -0400
committerAlexander Taylor <alex@vector35.com>2025-11-04 22:09:16 -0500
commit5ab92a703fe01634e086cbf278dc8ca36c438a54 (patch)
tree8d3e7341ffa1e896cb51afe075ba32ea0d330ec8 /binaryninjaapi.h
parentae1dbe7e69e3a1d5cc69fa5362fba1b85ba5b6b8 (diff)
Add auto downloading of project file dependencies, clean up download APIs
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 5460046b..0dae43cd 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -22250,12 +22250,20 @@ namespace BinaryNinja::Collaboration
void DeleteSnapshot(const Ref<CollabSnapshot> snapshot);
/*!
+ Download a remote file and possibly dependencies to its project
+ Dependency download behavior depends on the value of the collaboration.autoDownloadFileDependencies setting
+ \param progress Function to call on progress updates
+ \throws RemoteException If there is an error in any request or if the remote is not connected
+ */
+ void Download(ProgressFunction progress = DefaultProgressFunction);
+
+ /*!
Download the contents of a remote file
\param progress Function to call on progress updates
\return Contents of the file
\throws RemoteException If there is an error in any request or if the remote is not connected
*/
- std::vector<uint8_t> Download(ProgressFunction progress = {});
+ std::vector<uint8_t> DownloadContents(ProgressFunction progress = {});
/*!
Get the current user positions for this file