]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/lizard.h
XML: Brief documentation of LibUCW-XML
[libucw.git] / ucw / lizard.h
index 526fd5b5cee5519b5da9d8c01419749e0de00d92..c3141ecc32a03229a3f15571740354bcb35155ec 100644 (file)
 #ifndef _UCW_LIZARD_H
 #define _UCW_LIZARD_H
 
 #ifndef _UCW_LIZARD_H
 #define _UCW_LIZARD_H
 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define adler32_update ucw_adler32_update
+#define lizard_alloc ucw_lizard_alloc
+#define lizard_compress ucw_lizard_compress
+#define lizard_decompress ucw_lizard_decompress
+#define lizard_decompress_safe ucw_lizard_decompress_safe
+#define lizard_free ucw_lizard_free
+#endif
+
 /***
  * [[basic]]
  * Basic application
 /***
  * [[basic]]
  * Basic application
@@ -59,7 +68,7 @@
  *
  * Use @lizard_decompress() to get the original data.
  **/
  *
  * Use @lizard_decompress() to get the original data.
  **/
-int lizard_compress(const byte *in, uns in_len, byte *out);
+int lizard_compress(const byte *in, uint in_len, byte *out);
 
 /**
  * Decompress data previously compressed by @lizard_compress().
 
 /**
  * Decompress data previously compressed by @lizard_compress().
@@ -117,7 +126,7 @@ void lizard_free(struct lizard_buffer *buf);
  * Beware this function is not thread-safe and is not even reentrant
  * (because of internal segfault handling).
  **/
  * Beware this function is not thread-safe and is not even reentrant
  * (because of internal segfault handling).
  **/
-byte *lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uns expected_length);
+byte *lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uint expected_length);
 
 /* adler32.c */
 
 
 /* adler32.c */
 
@@ -135,12 +144,12 @@ byte *lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uns expe
  * @adler is the old value, @byte points to @len bytes of data to update with.
  * Result is returned.
  **/
  * @adler is the old value, @byte points to @len bytes of data to update with.
  * Result is returned.
  **/
-uns adler32_update(uns adler, const byte *ptr, uns len);
+uint adler32_update(uint adler, const byte *ptr, uint len);
 
 /**
  * Compute the Adler-32 checksum of a block of data.
  **/
 
 /**
  * Compute the Adler-32 checksum of a block of data.
  **/
-static inline uns adler32(const byte *buf, uns len)
+static inline uint adler32(const byte *buf, uint len)
 {
   return adler32_update(1, buf, len);
 }
 {
   return adler32_update(1, buf, len);
 }