From 644800f593f799502323e21f1ad4d6861f5c5b35 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 7 Jul 2012 14:36:36 +0200 Subject: lzo: Allow for static inlining Signed-off-by: Sascha Hauer --- include/lzo.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/lzo.h') diff --git a/include/lzo.h b/include/lzo.h index 0530a6806d..ceacfba692 100644 --- a/include/lzo.h +++ b/include/lzo.h @@ -19,12 +19,16 @@ #define lzo1x_worst_compress(x) ((x) + ((x) / 16) + 64 + 3) +#ifndef STATIC +#define STATIC +#endif + /* This requires 'workmem' of size LZO1X_1_MEM_COMPRESS */ int lzo1x_1_compress(const unsigned char *src, size_t src_len, unsigned char *dst, size_t *dst_len, void *wrkmem); /* safe decompression with overrun testing */ -int lzo1x_decompress_safe(const unsigned char *src, size_t src_len, +STATIC int lzo1x_decompress_safe(const unsigned char *src, size_t src_len, unsigned char *dst, size_t *dst_len); /* @@ -41,7 +45,7 @@ int lzo1x_decompress_safe(const unsigned char *src, size_t src_len, #define LZO_E_INPUT_NOT_CONSUMED (-8) #define LZO_E_NOT_YET_IMPLEMENTED (-9) -int decompress_unlzo(u8 *input, int in_len, +STATIC int decompress_unlzo(u8 *input, int in_len, int (*fill) (void *, unsigned int), int (*flush) (void *, unsigned int), u8 *output, int *posp, -- cgit v1.2.3