/*1* Copyright (c) 2018 rajkosto2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516#ifndef _BLZ_H_17#define _BLZ_H_1819#include <utils/types.h>2021typedef struct _blz_footer22{23u32 cmp_and_hdr_size;24u32 header_size;25u32 addl_size;26} blz_footer;2728// Returns pointer to footer in comp_data if present, additionally copies it to out_footer if not NULL.29const blz_footer *blz_get_footer(const u8 *comp_data, u32 comp_data_size, blz_footer *out_footer);30// Returns 0 on failure.31int blz_uncompress_inplace(u8 *data, u32 comp_size, const blz_footer *footer);32// Returns 0 on failure.33int blz_uncompress_srcdest(const u8 *comp_data, u32 comp_data_size, u8 *dst_data, u32 dst_size);3435#endif363738