From 9262278979709181414664053523657355762707 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 24 Apr 2025 14:46:37 -0400 Subject: std::function ==> ProgressFunction --- collaboration.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'collaboration.cpp') diff --git a/collaboration.cpp b/collaboration.cpp index 28ad916a..b07cd845 100644 --- a/collaboration.cpp +++ b/collaboration.cpp @@ -454,7 +454,7 @@ bool BinaryNinja::Collaboration::NameChangesetCallback(void* ctxt, BNCollaborati }; -void BinaryNinja::Collaboration::SyncDatabase(Ref database, Ref file, std::function>& conflicts)> conflictHandler, std::function progress, NameChangesetFunction nameChangeset) +void BinaryNinja::Collaboration::SyncDatabase(Ref database, Ref file, std::function>& conflicts)> conflictHandler, ProgressFunction progress, NameChangesetFunction nameChangeset) { ProgressContext pctxt; pctxt.callback = progress; @@ -762,7 +762,7 @@ Ref Remote::GetProjectByName(const std::string& name) } -void Remote::PullProjects(std::function progress) +void Remote::PullProjects(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -779,7 +779,7 @@ Ref Remote::CreateProject(const std::string& name, const std::str } -Ref Remote::ImportLocalProject(Ref localProject, std::function progress) +Ref Remote::ImportLocalProject(Ref localProject, ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -867,7 +867,7 @@ std::vector> Remote::SearchGroups(const std::st } -void Remote::PullGroups(std::function progress) +void Remote::PullGroups(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -977,7 +977,7 @@ std::vector> Remote::SearchUsers(const std:: } -void Remote::PullUsers(std::function progress) +void Remote::PullUsers(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1168,7 +1168,7 @@ bool RemoteProject::IsOpen() } -bool RemoteProject::Open(std::function progress) +bool RemoteProject::Open(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1336,7 +1336,7 @@ Ref RemoteProject::GetFileByName(const std::string& name) } -void RemoteProject::PullFiles(std::function progress) +void RemoteProject::PullFiles(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1344,7 +1344,7 @@ void RemoteProject::PullFiles(std::function progress) } -void RemoteProject::PullFolders(std::function progress) +void RemoteProject::PullFolders(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1353,7 +1353,7 @@ void RemoteProject::PullFolders(std::function progress) } -Ref RemoteProject::CreateFile(const std::string& filename, std::vector& contents, const std::string& name, const std::string& description, Ref folder, BNRemoteFileType type, std::function progress, Ref coreFile) +Ref RemoteProject::CreateFile(const std::string& filename, std::vector& contents, const std::string& name, const std::string& description, Ref folder, BNRemoteFileType type, ProgressFunction progress, Ref coreFile) { ProgressContext pctxt; pctxt.callback = progress; @@ -1364,7 +1364,7 @@ Ref RemoteProject::CreateFile(const std::string& filename, std::vect } -Ref RemoteProject::CreateFolder(const std::string& name, const std::string& description, Ref parent, std::function progress, Ref coreFolder) +Ref RemoteProject::CreateFolder(const std::string& name, const std::string& description, Ref parent, ProgressFunction progress, Ref coreFolder) { ProgressContext pctxt; pctxt.callback = progress; @@ -1473,7 +1473,7 @@ Ref RemoteProject::GetPermissionById(const std::string& id) } -void RemoteProject::PullGroupPermissions(std::function progress) +void RemoteProject::PullGroupPermissions(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1481,7 +1481,7 @@ void RemoteProject::PullGroupPermissions(std::function pro } -void RemoteProject::PullUserPermissions(std::function progress) +void RemoteProject::PullUserPermissions(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1489,7 +1489,7 @@ void RemoteProject::PullUserPermissions(std::function prog } -Ref RemoteProject::CreateGroupPermission(int groupId, BNCollaborationPermissionLevel level, std::function progress) +Ref RemoteProject::CreateGroupPermission(int groupId, BNCollaborationPermissionLevel level, ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1500,7 +1500,7 @@ Ref RemoteProject::CreateGroupPermission(int groupId, BNCollab } -Ref RemoteProject::CreateUserPermission(const std::string& userId, BNCollaborationPermissionLevel level, std::function progress) +Ref RemoteProject::CreateUserPermission(const std::string& userId, BNCollaborationPermissionLevel level, ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1777,7 +1777,7 @@ Ref RemoteFile::GetSnapshotById(const std::string& id) } -void RemoteFile::PullSnapshots(std::function progress) +void RemoteFile::PullSnapshots(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1785,7 +1785,7 @@ void RemoteFile::PullSnapshots(std::function progress) } -Ref RemoteFile::CreateSnapshot(std::string name, std::vector contents, std::vector analysisCacheContents, std::optional> fileContents, std::vector parentIds, std::function progress) +Ref RemoteFile::CreateSnapshot(std::string name, std::vector contents, std::vector analysisCacheContents, std::optional> fileContents, std::vector parentIds, ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -1825,7 +1825,7 @@ void RemoteFile::DeleteSnapshot(const Ref snapshot) } -std::vector RemoteFile::Download(std::function progress) +std::vector RemoteFile::Download(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -2600,7 +2600,7 @@ Ref CollabSnapshot::GetUndoEntryById(uint64_t id) } -void CollabSnapshot::PullUndoEntries(std::function progress) +void CollabSnapshot::PullUndoEntries(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -2623,7 +2623,7 @@ void CollabSnapshot::Finalize() } -std::vector CollabSnapshot::DownloadSnapshotFile(std::function progress) +std::vector CollabSnapshot::DownloadSnapshotFile(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -2640,7 +2640,7 @@ std::vector CollabSnapshot::DownloadSnapshotFile(std::function CollabSnapshot::Download(std::function progress) +std::vector CollabSnapshot::Download(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; @@ -2657,7 +2657,7 @@ std::vector CollabSnapshot::Download(std::function CollabSnapshot::DownloadAnalysisCache(std::function progress) +std::vector CollabSnapshot::DownloadAnalysisCache(ProgressFunction progress) { ProgressContext pctxt; pctxt.callback = progress; -- cgit v1.3.1