cieter/include/cieter_package.h

27 lines
499 B
C
Raw Normal View History

2022-12-03 23:27:44 +01:00
#ifndef CIETER_PACKAGE
#define CIETER_PACKAGE
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include "archive.h"
#include "archive_entry.h"
#include "cieter_package_info.h"
#include "cieter_dynarray.h"
typedef struct pkg {
char *path;
CieterPkgInfo *info;
CieterDynArray *files;
int compression;
} CieterPkg;
CieterPkg *package_read_archive(const char *pkg_path);
void package_free(CieterPkg ** ptp);
char *package_to_description(CieterPkg *pkg);
#endif