From 2fad78974d74338fa6bf895b8b092c38ab41bd10 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 18 Jul 2012 23:34:32 +1000 Subject: Add resolved_path to alpm_filelist_t Add an array to hold the resolved paths of the files in alpm_filelist_t. When the file name and its resolved file name are identical, the pointer to the original file name is used to avoid duplicate memory allocation. Signed-off-by: Allan McRae --- lib/libalpm/alpm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/alpm.h') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 1d6a8c6c..96da8db0 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -210,6 +210,7 @@ typedef struct _alpm_file_t { typedef struct _alpm_filelist_t { size_t count; alpm_file_t *files; + char **resolved_path; } alpm_filelist_t; /** Local package or package file backup entry */ -- cgit v1.2.3-24-g4f1b