2023-01-25 13:00:33 +01:00
|
|
|
#ifndef VIETER_PACKAGE
|
|
|
|
#define VIETER_PACKAGE
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2023-01-28 23:01:00 +01:00
|
|
|
#include <archive.h>
|
|
|
|
#include <archive_entry.h>
|
2023-01-25 13:00:33 +01:00
|
|
|
|
|
|
|
#include "package_info.h"
|
|
|
|
#include "dynarray.h"
|
|
|
|
|
|
|
|
typedef struct pkg {
|
|
|
|
char *path;
|
|
|
|
PkgInfo *info;
|
|
|
|
DynArray *files;
|
|
|
|
int compression;
|
|
|
|
} Pkg;
|
|
|
|
|
|
|
|
Pkg *package_read_archive(const char *pkg_path);
|
|
|
|
void package_free(Pkg ** ptp);
|
2023-01-25 22:15:07 +01:00
|
|
|
char *package_to_description(Pkg *pkg);
|
2023-01-25 13:00:33 +01:00
|
|
|
|
|
|
|
#endif
|