2019-03-08 18:18:31 +01:00
|
|
|
/* SPDX-License-Identifier: ISC */
|
2019-01-30 11:34:23 +01:00
|
|
|
#ifndef PKGIO_H
|
|
|
|
#define PKGIO_H
|
|
|
|
|
|
|
|
#include "pkgreader.h"
|
2019-02-04 15:39:43 +01:00
|
|
|
#include "filelist/image_entry.h"
|
2019-01-30 11:34:23 +01:00
|
|
|
|
2019-01-30 13:26:05 +01:00
|
|
|
enum {
|
|
|
|
UNPACK_NO_CHOWN = 0x01,
|
|
|
|
UNPACK_NO_CHMOD = 0x02,
|
2019-02-04 16:26:47 +01:00
|
|
|
UNPACK_NO_SYMLINKS = 0x04,
|
2019-02-04 17:43:24 +01:00
|
|
|
UNPACK_NO_DEVICES = 0x08,
|
2019-01-30 13:26:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
int pkg_unpack(int rootfd, int flags, pkg_reader_t *rd);
|
|
|
|
|
2019-02-07 23:14:45 +01:00
|
|
|
int image_entry_list_from_package(pkg_reader_t *pkg, image_entry_t ** list);
|
2019-01-30 11:34:23 +01:00
|
|
|
|
|
|
|
#endif /* PKGIO_H */
|