X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fzstd.h;h=35ba4c90aa40b5ec5709e3efbada5784d26df5d9;hb=92832045c54586e9dffa082ff8cd8c2ef6040757;hp=724f69350e0afeaf99c17efaef53966291568100;hpb=6984044d0516d855ec621fff741f372932d28669;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/linux/zstd.h b/include/linux/zstd.h index 724f693..35ba4c9 100644 --- a/include/linux/zstd.h +++ b/include/linux/zstd.h @@ -1144,4 +1144,15 @@ size_t ZSTD_decompressBlock(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, size_t ZSTD_insertBlock(ZSTD_DCtx *dctx, const void *blockStart, size_t blockSize); +struct abuf; + +/** + * zstd_decompress() - Decompress Zstandard data + * + * @in: Input buffer to decompress + * @out: Output buffer to hold the results (must be large enough) + * @return size of the decompressed data, or -ve on error + */ +int zstd_decompress(struct abuf *in, struct abuf *out); + #endif /* ZSTD_H */