Simon Glass | 6c03f9e | 2019-11-14 12:57:25 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2019 Google LLC |
| 4 | */ |
| 5 | |
| 6 | #ifndef __LZ4_H |
| 7 | #define __LZ4_H |
| 8 | |
| 9 | /** |
| 10 | * ulz4fn() - Decompress LZ4 data |
| 11 | * |
| 12 | * @src: Source data to decompress |
| 13 | * @srcn: Length of source data |
| 14 | * @dst: Destination for uncompressed data |
| 15 | * @dstn: Returns length of uncompressed data |
| 16 | * @return 0 if OK, -EPROTONOSUPPORT if the magic number or version number are |
| 17 | * not recognised or independent blocks are used, -EINVAL if the reserved |
| 18 | * fields are non-zero, or input is overrun, -EENOBUFS if the destination |
| 19 | * buffer is overrun, -EEPROTO if the compressed data causes an error in |
| 20 | * the decompression algorithm |
| 21 | */ |
| 22 | int ulz4fn(const void *src, size_t srcn, void *dst, size_t *dstn); |
| 23 | |
| 24 | #endif |