From 9bcf1e97960c0da7322a868efdbc07e2650716fe Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 9 Jan 2021 09:01:05 +0000 Subject: Extra libs: ap.lib aPLib support with apultra. --- include/ap.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/ap.h (limited to 'include') diff --git a/include/ap.h b/include/ap.h new file mode 100644 index 0000000..4875f88 --- /dev/null +++ b/include/ap.h @@ -0,0 +1,30 @@ +#ifndef _AP_H +#define _AP_H + +#include + +// @aPLib compression +// +// The `ap.lib` library allows decompressing data compressed by +// [aPLib](https://ibsensoftware.com/products_aPLib.html). +// +// [apultra](https://github.com/emmanuel-marty/apultra) is an optimal +// compressor for the aPLib format and it is included in tools for convenience. +// +// It will be compiled as part of the tools, but you can compile it +// independently with: +// +// ``` +// make bin/apultra +// ``` +// +// The resulting binary will be placed in the `bin` directory. + +/** + * Uncompress the data pointed by `src` into the memory pointed by `dst`. + * + * The compressed data is expected to be in aPLib raw format. + */ +void ap_uncompress(const uint8_t *dst, const uint8_t *src); + +#endif // _AP_H -- cgit v1.2.3