[][src]Function alpm_sys::alpm_db_get_usage

pub unsafe extern "C" fn alpm_db_get_usage(
    db: *mut alpm_db_t,
    usage: *mut c_int
) -> c_int

Gets the usage of a database. @param db pointer to the package database to get the status of @param usage pointer to an alpm_db_usage_t to store db's status @return 0 on success, or -1 on error