libalpm: mark filelist_contains as taking a const filelist
This is useful for bindings as it guarantees the value will not be changed. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
7ba2c276db
commit
7340fb9b2e
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ typedef struct _alpm_backup_t {
|
|||
* @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);
|
||||
alpm_file_t *alpm_filelist_contains(const alpm_filelist_t *filelist, const char *path);
|
||||
|
||||
/* End of libalpm_files */
|
||||
/** @} */
|
||||
|
|
|
@ -118,7 +118,7 @@ static int _alpm_files_cmp(const void *f1, const void *f2)
|
|||
return strcmp(file1->name, file2->name);
|
||||
}
|
||||
|
||||
alpm_file_t SYMEXPORT *alpm_filelist_contains(alpm_filelist_t *filelist,
|
||||
alpm_file_t SYMEXPORT *alpm_filelist_contains(const alpm_filelist_t *filelist,
|
||||
const char *path)
|
||||
{
|
||||
alpm_file_t key;
|
||||
|
|
Loading…
Add table
Reference in a new issue