add ext4,vfat and tar.bz2
[u-tools.git] / u-tools / apps / busybox / archival / libunarchive / init_handle.c
blobff7d484e5df64724736a3c644ff68e059c72b347
1 /* vi: set sw=4 ts=4: */
2 /*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
4 */
6 #include "libbb.h"
7 #include "unarchive.h"
9 archive_handle_t* FAST_FUNC init_handle(void)
11 archive_handle_t *archive_handle;
13 /* Initialize default values */
14 archive_handle = xzalloc(sizeof(archive_handle_t));
15 archive_handle->file_header = xzalloc(sizeof(file_header_t));
16 archive_handle->action_header = header_skip;
17 archive_handle->action_data = data_skip;
18 archive_handle->filter = filter_accept_all;
19 archive_handle->seek = seek_by_jump;
21 return archive_handle;