]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
add atexit () and memory profile bindings, fixes bug #530627
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Mon, 26 May 2008 18:02:56 +0000 (18:02 +0000)
committerMarc-Andre Lureau <malureau@src.gnome.org>
Mon, 26 May 2008 18:02:56 +0000 (18:02 +0000)
2008-05-26  Marc-André Lureau  <marcandre.lureau@gmail.com>

* vapi/glib-2.0.vapi (Memory): add atexit () and memory profile
bindings, fixes bug #530627

svn path=/trunk/; revision=1454

ChangeLog
vapi/glib-2.0.vapi

index a6555631b615541dfbb87870a50e578706ef77a2..dcc87995f0c2843fc9eb5114b0c0518b6a3c9dc4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-26  Marc-André Lureau  <marcandre.lureau@gmail.com>
+
+       * vapi/glib-2.0.vapi (Memory): add atexit () and memory profile
+       bindings, fixes bug #530627
+
 2008-05-26  Marc-André Lureau  <marcandre.lureau@gmail.com>
 
        * vapi/glib-2.0.vapi (Object): add weak pointer references
index 832cf5842fd3b2d1e66e47d9300ad329a07cbe86..8be6b86775e64a84a06df8f7b95e51a13f1b6b01 100644 (file)
@@ -1385,6 +1385,15 @@ namespace GLib {
        
        public static void free (void* mem);
 
+       public class MemVTable {
+       }
+
+       [CCode (cname = "glib_mem_profiler_table")]
+       public static MemVTable mem_profiler_table;
+
+       public static void mem_set_vtable (MemVTable vtable);
+       public static void mem_profile ();
+
        [CCode (cheader_filename = "string.h")]
        namespace Memory {
                [CCode (cname = "memcmp")]
@@ -1871,6 +1880,8 @@ namespace GLib {
                public static string get_current_dir ();
                [CCode (cname = "g_find_program_in_path")]
                public static string find_program_in_path (string program);
+               [CCode (cname = "g_atexit")]
+               public static void atexit (VoidFunc func);
        }
 
        public enum UserDirectory {
@@ -1911,6 +1922,7 @@ namespace GLib {
        }
 
        public static delegate void FreeFunc (void* data);
+       public static delegate void VoidFunc ();
 
        /* Lexical Scanner */