binaryninja::collaboration

Function sync_database

source
pub fn sync_database<C: DatabaseConflictHandler, N: NameChangeset>(
    database: &Database,
    file: &RemoteFile,
    conflict_handler: C,
    name_changeset: N,
) -> Result<(), ()>
Expand description

Completely sync a database, pushing/pulling/merging/applying changes

  • database - Database to sync
  • file - File to sync with
  • conflict_handler - Function to call to resolve snapshot conflicts
  • name_changeset - Function to call for naming a pushed changeset, if necessary