Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-07-18 23:34:32 +1000
committerAllan McRae <allan@archlinux.org>2012-12-14 12:35:34 +1000
commit2fad78974d74338fa6bf895b8b092c38ab41bd10 (patch)
tree696cd534f8b7ac6e12b6527455ad74412e2be763 /lib/libalpm/alpm.h
parentc1abfeae1ec39a196262622662850b7d277a4734 (diff)
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 <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h1
1 files changed, 1 insertions, 0 deletions
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 */