summaryrefslogtreecommitdiff
path: root/src/lib/emile/Emile.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2015-03-17 08:50:02 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 09:58:17 +0100
commit0fa50a080428bb8c710603cb4208e1786f9365a9 (patch)
treea0ede091c745237e55a097c434d93c08781f475e /src/lib/emile/Emile.h
parenta7d7cae0c4bc92d7672d512136c85a3305aaf74f (diff)
emile: add compress/uncompress logic.
Diffstat (limited to 'src/lib/emile/Emile.h')
-rw-r--r--src/lib/emile/Emile.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/emile/Emile.h b/src/lib/emile/Emile.h
index 28f84aa53c..c82af0af91 100644
--- a/src/lib/emile/Emile.h
+++ b/src/lib/emile/Emile.h
@@ -112,6 +112,30 @@ EAPI Eina_Binbuf *emile_binbuf_cipher(const Eina_Binbuf *in,
112EAPI Eina_Binbuf *emile_binbuf_decipher(const Eina_Binbuf *in, 112EAPI Eina_Binbuf *emile_binbuf_decipher(const Eina_Binbuf *in,
113 const char *key, unsigned int length); 113 const char *key, unsigned int length);
114 114
115typedef enum
116{
117 EMILE_ZLIB,
118 EMILE_LZ4,
119 EMILE_LZ4HC
120} Emile_Compressor_Type;
121
122typedef enum
123{
124 EMILE_DEFAULT = -1,
125 EMILE_NO_COMPRESSION = 0,
126 EMILE_FAST_COMPRESSION = 1,
127 EMILE_BEST_COMPRESSION = 9
128} Emile_Compressor_Level;
129
130EAPI Eina_Binbuf *emile_binbuf_compress(const Eina_Binbuf *in,
131 Emile_Compressor_Type t, int level);
132EAPI Eina_Binbuf *emile_binbuf_uncompress(const Eina_Binbuf *in,
133 Emile_Compressor_Type t,
134 unsigned int dest_length);
135EAPI Eina_Bool emile_binbuf_expand(const Eina_Binbuf *in,
136 Eina_Binbuf *out,
137 Emile_Compressor_Type t);
138
115#ifdef __cplusplus 139#ifdef __cplusplus
116} 140}
117#endif /* ifdef __cplusplus */ 141#endif /* ifdef __cplusplus */