lzo: export decompress_unlzo function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
b6996039f6
commit
83d0904980
|
@ -43,4 +43,10 @@ int lzo1x_decompress_safe(const unsigned char *src, size_t src_len,
|
|||
|
||||
int unlzo(int in_fd, int out_fd, int *dest_len);
|
||||
|
||||
int decompress_unlzo(u8 *input, int in_len,
|
||||
int (*fill) (void *, unsigned int),
|
||||
int (*flush) (void *, unsigned int),
|
||||
u8 *output, int *posp,
|
||||
void (*error) (char *x));
|
||||
|
||||
#endif
|
||||
|
|
|
@ -106,7 +106,7 @@ static inline int parse_header(u8 *input, int *skip, int in_len)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static inline int __unlzo(u8 *input, int in_len,
|
||||
int decompress_unlzo(u8 *input, int in_len,
|
||||
int (*fill) (void *, unsigned int),
|
||||
int (*flush) (void *, unsigned int),
|
||||
u8 *output, int *posp,
|
||||
|
@ -307,5 +307,5 @@ int unlzo(int _in_fd, int _out_fd, int *dest_len)
|
|||
{
|
||||
in_fd = _in_fd;
|
||||
out_fd = _out_fd;
|
||||
return __unlzo(NULL, 0, unlzo_fill, unlzo_flush, NULL, NULL, unlzo_error);
|
||||
return decompress_unlzo(NULL, 0, unlzo_fill, unlzo_flush, NULL, NULL, unlzo_error);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue