[vala] bzlib: add BZFILE binding
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] bzlib: add BZFILE binding
- Date: Fri, 23 Sep 2011 02:04:46 +0000 (UTC)
commit 795ba8f925ef404165782fe9cdb2b693a6ea0322
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]