Function alpm_sys::alpm_register_syncdb[][src]

pub unsafe extern "C" fn alpm_register_syncdb(
    handle: *mut alpm_handle_t,
    treename: *const c_char,
    level: c_int
) -> *mut alpm_db_t
Expand description

Register a sync database of packages. Databases can not be registered when there is an active transaction.

@param handle the context handle @param treename the name of the sync repository @param level what level of signature checking to perform on the database; note that this must be a ‘.sig’ file type verification @return an alpm_db_t* on success (the value), NULL on error