[vala] zlib: add crc32 and adler32 to ZLib.Utility



commit a69be6ff2a02d1c1fb9f191c2c0dfd86dcfd3eef
Author: Evan Nemerson <evan coeus-group com>
Date:   Sun Jun 20 12:31:26 2010 -0700

    zlib: add crc32 and adler32 to ZLib.Utility
    
    Fixes bug 622200.

 vapi/zlib.vapi |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapi/zlib.vapi b/vapi/zlib.vapi
index dcd292a..d27555b 100644
--- a/vapi/zlib.vapi
+++ b/vapi/zlib.vapi
@@ -141,12 +141,15 @@ namespace ZLib {
 		public int prime (int bits, int value);
 		public int get_header (out GZHeader head);
 	}
+	[CCode (lower_case_cprefix = "")]
 	namespace Utility {
 		[CCode (cname = "compress2")]
 		public static int compress ([CCode (array_length_type = "gulong")] uchar[] dest, [CCode (array_length_type = "gulong")] uchar[] source, int level = Level.DEFAULT_COMPRESSION);
 		[CCode (cname = "compressBound")]
 		public static int compress_bound (ulong sourceLen);
 		public static int uncompress ([CCode (array_length_type = "gulong")] uchar[] dest, [CCode (array_length_type = "gulong")] uchar[] source);
+		public static ulong adler32 (ulong crc = 0, [CCode (array_length_type = "guint")] uint8[]? buf = null);
+		public static ulong crc32 (ulong crc = 0, [CCode (array_length_type = "guint")] uint8[]? buf = null);
 	}
 	[CCode (cname = "gz_header")]
 	public struct GZHeader {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]