GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_zip.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2021 Cyril Hrubis <metan@ucw.cz>
4 */
5
6 /*
7
8 Zip container, could be used to load images from cbz or from zip files.
9
10 */
11
12#ifndef LOADERS_GP_ZIP_H
13#define LOADERS_GP_ZIP_H
14
15#include <loaders/gp_container.h>
16
17extern const gp_container_ops gp_zip_ops;
18
19gp_container *gp_open_zip(const char *path);
20
21/*
22 * Creates a new ZIP container from an io. No check are done, the caller is
23 * supposed to use gp_match_zip() to check for the zip signature.
24 */
25gp_container *gp_init_zip(gp_io *io);
26
27int gp_match_zip(const void *buf);
28
29#endif /* LOADERS_GP_ZIP_H */