9
0
Fork 0

lzo: export decompress_unlzo function

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-11-28 21:39:12 +01:00
parent b6996039f6
commit 83d0904980
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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);
}