// SPDX-License-Identifier: GPL-2.0-or-later // The SCFF decoder's interface, in types both the kernel's headers and zstd's // agree on. See kernel/scff/scff.c. #ifndef SCHOS_SCFF_ZSTD_H #define SCHOS_SCFF_ZSTD_H // 0, or -1 if the workspace is too small for this zstd. int scff_zstd_init(void); // Decompress one zstd frame. The length written, or -1 for a bad frame. // One caller at a time. long scff_zstd_decompress(void *dst, unsigned long cap, const void *src, unsigned long n); #endif