#[no_mangle]
pub extern "C" fn annis_cs_apply_update(
    ptr: *mut CorpusStorage,
    corpus_name: *const c_char,
    update: *mut GraphUpdate,
    err: *mut *mut ErrorList
)
Expand description

Apply a sequence of updates (update parameter) to this graph for a corpus given by the corpus_name parameter.

  • ptr - The corpus storage object.
  • err - Pointer to a list of errors. If any error occured, this list will be non-empty.

It is ensured that the update process is atomic and that the changes are persisted to disk if the error list is empty.