diff options
author | Dan McGee <dan@archlinux.org> | 2008-02-15 20:17:57 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-04-26 11:30:12 -0500 |
commit | 30bdf94c2b444ff475a32e7b0c569e8c3cf05797 (patch) | |
tree | 408802e82996905879372deabee8123c5fa5d98e /lib/libalpm/delta.h | |
parent | ff9744aa1f9d3da380e722fd44a07b8c8a68d101 (diff) | |
download | pacman-30bdf94c2b444ff475a32e7b0c569e8c3cf05797.tar.xz |
Rework delta struct and modify code accordingly
Start to move the delta struct away from an assumed package name scheme and
towards something that is package (or even filename) agnostic. This will
allow us much greater flexibility in the usage of deltas (maybe even sync
DBs some day) as well as allowing code outside of delta.h/delta.c to be much
cleaner with less of a need for snprintf() calls.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/delta.h')
-rw-r--r-- | lib/libalpm/delta.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/libalpm/delta.h b/lib/libalpm/delta.h index 007e5d45..a2ac5f05 100644 --- a/lib/libalpm/delta.h +++ b/lib/libalpm/delta.h @@ -22,11 +22,20 @@ #include "alpm.h" struct __pmdelta_t { + /** filename of the 'before' file */ char *from; + /** md5sum of the 'before' file */ + char *from_md5; + /** filename of the 'after' file */ char *to; - unsigned long size; - char *filename; - char *md5sum; + /** md5sum of the 'after' file */ + char *to_md5; + /** filename of the delta patch */ + char *delta; + /** md5sum of the delta file */ + char *delta_md5; + /** filesize of the delta file */ + unsigned long delta_size; }; unsigned long _alpm_delta_path_size(alpm_list_t *deltas); |