Joao Marcos Costa | 29da374 | 2020-07-30 15:33:47 +0200 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2020 Bootlin |
| 4 | * |
| 5 | * Author: Joao Marcos Costa <joaomarcos.costa@bootlin.com> |
| 6 | */ |
| 7 | |
| 8 | #include <errno.h> |
| 9 | #include <stdint.h> |
| 10 | #include <stdio.h> |
| 11 | #include <stdlib.h> |
| 12 | |
| 13 | #include "sqfs_decompressor.h" |
| 14 | #include "sqfs_filesystem.h" |
| 15 | #include "sqfs_utils.h" |
| 16 | |
| 17 | int sqfs_decompress(u16 comp_type, void *dest, unsigned long *dest_len, |
| 18 | void *source, u32 lenp) |
| 19 | { |
| 20 | int ret = 0; |
| 21 | |
| 22 | switch (comp_type) { |
| 23 | default: |
| 24 | printf("Error: unknown compression type.\n"); |
| 25 | return -EINVAL; |
| 26 | } |
| 27 | |
| 28 | return ret; |
| 29 | } |