diff options
| author | Josh Ferrell <josh@vector35.com> | 2025-08-27 21:02:59 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2025-11-04 22:09:16 -0500 |
| commit | 5ab92a703fe01634e086cbf278dc8ca36c438a54 (patch) | |
| tree | 8d3e7341ffa1e896cb51afe075ba32ea0d330ec8 /binaryninjaapi.h | |
| parent | ae1dbe7e69e3a1d5cc69fa5362fba1b85ba5b6b8 (diff) | |
Add auto downloading of project file dependencies, clean up download APIs
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 10 |
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 |
