blob: a899a5704be9e9fd749ec477ee552edfe3a5559c [file] [log] [blame]
Joao Marcos Costa29da3742020-07-30 15:33:47 +02001// 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
17int 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}