Function alpm_sys::alpm_db_search[][src]

pub unsafe extern "C" fn alpm_db_search(
    db: *mut alpm_db_t,
    needles: *const alpm_list_t,
    ret: *mut *mut alpm_list_t
) -> c_int
Expand description

Searches a database with regular expressions. @param db pointer to the package database to search in @param needles a list of regular expressions to search for @param ret pointer to list for storing packages matching all regular expressions - must point to an empty (NULL) alpm_list_t *. @return 0 on success, -1 on error (pm_errno is set accordingly)