[vala] glib-2.0: Add slice allocation bindings
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Add slice allocation bindings
- Date: Sat, 17 Jul 2010 05:49:17 +0000 (UTC)
commit ca277d153f67fff8d08e0d4238e3363f2c7c67b2
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Thu Jul 15 15:55:20 2010 +0200
glib-2.0: Add slice allocation bindings
Fixes bug 624458.
vapi/glib-2.0.vapi | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index ba89c88..ca90792 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1726,6 +1726,15 @@ namespace GLib {
public static void* dup (void* mem, uint n);
}
+ namespace Slice {
+ public static void* alloc (size_t block_size);
+ public static void* alloc0 (size_t block_size);
+ public static void* copy (size_t block_size, void* mem_block);
+ [CCode (cname = "g_slice_free1")]
+ public static void free (size_t block_size, void* mem_block);
+ public static void free_chain_with_offset (size_t block_size, void *mem_chain, size_t next_offset);
+ }
+
/* IO Channels */
[Compact]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]