c4repl_new

Function c4repl_new 

Source
pub unsafe extern "C" fn c4repl_new(
    db: *mut C4Database,
    remoteAddress: C4Address,
    remoteDatabaseName: C4String,
    params: C4ReplicatorParameters,
    outError: *mut C4Error,
) -> *mut C4Replicator
Expand description

Creates a new networked replicator. @param db The local database. @param remoteAddress The address of the remote server. @param remoteDatabaseName The name of the database at the remote address. @param params Replication parameters (see above.) @param outError Error, if replication can’t be created. @return The newly created replicator, or NULL on error.