[vala/staging] bzlib: Add bzalloc/bzfree fields to Stream
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] bzlib: Add bzalloc/bzfree fields to Stream
- Date: Sun, 15 Apr 2018 17:08:39 +0000 (UTC)
commit c3621d0f74783f29f4b58c2eb5d338dabf9428df
Author: Jakub Kaszycki <kuba kaszycki net pl>
Date: Fri Mar 16 21:16:00 2018 +0100
bzlib: Add bzalloc/bzfree fields to Stream
https://bugzilla.gnome.org/show_bug.cgi?id=794409
vapi/bzlib.vapi | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vapi/bzlib.vapi b/vapi/bzlib.vapi
index 844442d..e75c10a 100644
--- a/vapi/bzlib.vapi
+++ b/vapi/bzlib.vapi
@@ -57,6 +57,8 @@ namespace BZLib {
public uint totoal_out_lo32;
public uint total_out_hi32;
public void *state;
+ public AllocFunc? bzalloc;
+ public FreeFunc? bzfree;
public void *opaque;
[CCode (cname = "BZ2_bzCompressInit")]
public Status compress_init (int block_size_100k, int verbosity, int work_factor);
@@ -81,4 +83,10 @@ namespace BZLib {
public int write (uint8[] buf);
public unowned string error (out Status status);
}
+
+ [CCode (has_target = false, has_typedef = false)]
+ public delegate void* AllocFunc (void* target, int m, int n);
+
+ [CCode (has_target = false, has_typedef = false)]
+ public delegate void FreeFunc (void* target, void* p);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]