Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
7858 views
1
#ifndef MUPDF_FITZ_UNZIP_H
2
#define MUPDF_FITZ_UNZIP_H
3
4
#include "mupdf/fitz/system.h"
5
#include "mupdf/fitz/context.h"
6
#include "mupdf/fitz/buffer.h"
7
#include "mupdf/fitz/stream.h"
8
9
typedef struct fz_archive_s fz_archive;
10
11
fz_archive *fz_open_directory(fz_context *ctx, const char *dirname);
12
fz_archive *fz_open_archive(fz_context *ctx, const char *filename);
13
fz_archive *fz_open_archive_with_stream(fz_context *ctx, fz_stream *file);
14
int fz_has_archive_entry(fz_context *ctx, fz_archive *zip, const char *name);
15
fz_stream *fz_open_archive_entry(fz_context *ctx, fz_archive *zip, const char *entry);
16
fz_buffer *fz_read_archive_entry(fz_context *ctx, fz_archive *zip, const char *entry);
17
void fz_drop_archive(fz_context *ctx, fz_archive *ar);
18
19
int fz_count_archive_entries(fz_context *ctx, fz_archive *zip);
20
const char *fz_list_archive_entry(fz_context *ctx, fz_archive *zip, int idx);
21
22
#endif
23
24