diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-05 04:52:23 +0300 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-05 04:52:23 +0300 |
commit | 18bbca18acf229875f2bb60cc37c3e8c22d237bc (patch) | |
tree | c5f85351ac0d13675edbd779dc15aef0240e394e /include | |
parent | 8e940984231a5baf98b6e2a637477dd701d314a9 (diff) |
enable .tar.bz2 for dpkg-deb
Diffstat (limited to 'include')
-rw-r--r-- | include/unarchive.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index a1010aae8..18bf089fb 100644 --- a/include/unarchive.h +++ b/include/unarchive.h @@ -28,7 +28,7 @@ typedef struct llist_s { typedef struct archive_handle_s { /* define if the header and data compenent should processed */ - char (*filter)(const struct archive_handle_s *); + char (*filter)(struct archive_handle_s *); const llist_t *accept; const llist_t *reject; const llist_t *passed; /* List of files that have successfully been worked on */ @@ -41,6 +41,8 @@ typedef struct archive_handle_s { /* process the data componenet, e.g. extract to filesystem */ void (*action_data)(struct archive_handle_s *); + + /* How to process any sub archive, e.g. get_header_tar_gz */ char (*action_data_subarchive)(struct archive_handle_s *); /* Contains the handle to a sub archive */ @@ -68,9 +70,10 @@ typedef struct archive_handle_s { extern archive_handle_t *init_handle(void); -extern char filter_accept_all(const archive_handle_t *archive_handle); -extern char filter_accept_list(const archive_handle_t *archive_handle); -extern char filter_accept_reject_list(const archive_handle_t *archive_handle); +extern char filter_accept_all(archive_handle_t *archive_handle); +extern char filter_accept_list(archive_handle_t *archive_handle); +extern char filter_accept_list_reassign(archive_handle_t *archive_handle); +extern char filter_accept_reject_list(archive_handle_t *archive_handle); extern void unpack_ar_archive(archive_handle_t *ar_archive); |