mirror of
https://github.com/pygos/pkg-utils.git
synced 2024-11-22 12:59:46 +01:00
David Oberhollenzer
5df2d5f730
We no longer need this, since we can now produce our own squashfs images directly from package files. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
46 lines
776 B
C
46 lines
776 B
C
/* SPDX-License-Identifier: ISC */
|
|
#ifndef IMAGE_ENTRY_H
|
|
#define IMAGE_ENTRY_H
|
|
|
|
#include <sys/types.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct image_entry_t {
|
|
struct image_entry_t *next;
|
|
char *name;
|
|
mode_t mode;
|
|
uid_t uid;
|
|
gid_t gid;
|
|
|
|
union {
|
|
struct {
|
|
char *location;
|
|
uint64_t size;
|
|
uint32_t id;
|
|
} file;
|
|
|
|
struct {
|
|
char *target;
|
|
} symlink;
|
|
|
|
struct {
|
|
dev_t devno;
|
|
} device;
|
|
} data;
|
|
} image_entry_t;
|
|
|
|
typedef enum {
|
|
TOC_FORMAT_PRETTY = 0,
|
|
TOC_FORMAT_INITRD = 2,
|
|
TOC_FORMAT_PKG = 3,
|
|
} TOC_FORMAT;
|
|
|
|
void image_entry_free(image_entry_t *ent);
|
|
|
|
void image_entry_free_list(image_entry_t *list);
|
|
|
|
image_entry_t *image_entry_sort(image_entry_t *list);
|
|
|
|
int dump_toc(image_entry_t *list, const char *root, TOC_FORMAT format);
|
|
|
|
#endif /* IMAGE_ENTRY_H */
|