1
0
Fork 0
mirror of https://github.com/pygos/pkg-utils.git synced 2024-11-24 21:40:43 +01:00
pkg-utils/include/pkgio.h
David Oberhollenzer 95c7302d25 Allow empty packages, i.e. packages not containing any files
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-02-08 11:20:12 +01:00

18 lines
364 B
C

#ifndef PKGIO_H
#define PKGIO_H
#include "pkgreader.h"
#include "filelist/image_entry.h"
enum {
UNPACK_NO_CHOWN = 0x01,
UNPACK_NO_CHMOD = 0x02,
UNPACK_NO_SYMLINKS = 0x04,
UNPACK_NO_DEVICES = 0x08,
};
int pkg_unpack(int rootfd, int flags, pkg_reader_t *rd);
int image_entry_list_from_package(pkg_reader_t *pkg, image_entry_t ** list);
#endif /* PKGIO_H */