[vala/0.14] bzlib: add BZFILE binding
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.14] bzlib: add BZFILE binding
- Date: Wed, 30 Nov 2011 14:22:34 +0000 (UTC)
commit 01b3d2dd06ba0fe6df7e265eced1d8b0ef939d43
Author: Andre Masella <andre p masella gmail com>
Date: Thu Sep 22 19:03:57 2011 -0700
bzlib: add BZFILE binding
Fixes bug 656710.
vapi/bzlib.vapi | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapi/bzlib.vapi b/vapi/bzlib.vapi
index 9c061de..726b6cc 100644
--- a/vapi/bzlib.vapi
+++ b/vapi/bzlib.vapi
@@ -71,4 +71,14 @@ namespace BZLib {
[CCode (cname = "BZ2_bzDecompressEnd")]
public Status decompress_end ();
}
+
+ [CCode (cname = "BZFILE", cprefix = "BZ2_bz", free_function = "BZ2_bzclose")]
+ [Compact]
+ public class BZFileStream {
+ public static BZFileStream open (string path, string mode = "rb");
+ public static BZFileStream dopen (int fd, string mode);
+ public int read (uint8[] buf);
+ public int write (uint8[] buf);
+ public unowned string error (out Status status);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]