mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00

All identifiers, regardless of use, that start with two underscores are reserved. This means they can't be used in header guards. The style that this project is now to use the full name of the file in capital letters followed by 'H'. For example, for a file called "uart_example.h", the header guard is UART_EXAMPLE_H. The exceptions are files that are imported from other projects: - CryptoCell driver - dt-bindings folders - zlib headers Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
24 lines
635 B
C
24 lines
635 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef IMAGE_DECOMPRESS_H
|
|
#define IMAGE_DECOMPRESS_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct image_info;
|
|
|
|
typedef int (decompressor_t)(uintptr_t *in_buf, size_t in_len,
|
|
uintptr_t *out_buf, size_t out_len,
|
|
uintptr_t work_buf, size_t work_len);
|
|
|
|
void image_decompress_init(uintptr_t buf_base, uint32_t buf_size,
|
|
decompressor_t *decompressor);
|
|
void image_decompress_prepare(struct image_info *info);
|
|
int image_decompress(struct image_info *info);
|
|
|
|
#endif /* IMAGE_DECOMPRESS_H */
|