index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2012-07-12 15:29:59 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-08-02 09:39:08 -0500 |
commit | 72d3713cc7865af5f4d91410ad56ed4287be6109 (patch) | |
tree | b7a4a0ddf620e5fcdaffa85c91a7352570217f24 /lib/libalpm/alpm.h | |
parent | 70d8c2150e33d1a0b9e09d72c5091d661383d641 (diff) |
-rw-r--r-- | lib/libalpm/alpm.h | 16 |
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index dd01a416..1d6a8c6c 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -871,7 +871,7 @@ alpm_filelist_t *alpm_pkg_get_files(alpm_pkg_t *pkg); * "<filename>\t<md5sum>", where the given md5sum is that of * the file as provided by the package. * @param pkg a pointer to package - * @return a reference to an internal list of strings. + * @return a reference to a list of alpm_backup_t objects */ alpm_list_t *alpm_pkg_get_backup(alpm_pkg_t *pkg); @@ -950,6 +950,20 @@ int alpm_pkg_set_reason(alpm_pkg_t *pkg, alpm_pkgreason_t reason); /** @} */ /* + * Filelists + */ + +/** Determines whether a package filelist contains a given path. + * The provided path should be relative to the install root with no leading + * slashes, e.g. "etc/localtime". When searching for directories, the path must + * have a trailing slash. + * @param filelist a pointer to a package filelist + * @param path the path to search for in the package + * @return a pointer to the matching file or NULL if not found + */ +alpm_file_t *alpm_filelist_contains(alpm_filelist_t *filelist, const char *path); + +/* * Signatures */ |