MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / PullDatabase

Method PullDatabase

collaboration.cpp:71–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71size_t BinaryNinja::Collaboration::PullDatabase(Ref<Database> database, Ref<RemoteFile> file, AnalysisConflictHandler conflictHandler, ProgressFunction progress, NameChangesetFunction nameChangeset)
72{
73 ProgressContext pctxt;
74 pctxt.callback = progress;
75
76 DatabaseConflictHandlerContext chctxt;
77 chctxt.callback = conflictHandler;
78
79 NameChangesetContext ncctxt;
80 ncctxt.callback = nameChangeset;
81
82 size_t count = 0;
83
84 if (!BNCollaborationPullDatabase(database->m_object, file->m_object, &count,
85 DatabaseConflictHandlerCallback, &chctxt,
86 ProgressCallback, &pctxt,
87 NameChangesetCallback, &ncctxt)
88 )
89 throw SyncException("Failed to pull database");
90 return count;
91}
92
93
94void BinaryNinja::Collaboration::MergeDatabase(Ref<Database> database, AnalysisConflictHandler conflictHandler, ProgressFunction progress)

Callers

nothing calls this directly

Calls 1

SyncExceptionClass · 0.85

Tested by

no test coverage detected