]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Update bindings for g_format_*()
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 29 Nov 2011 23:33:18 +0000 (01:33 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 2 Dec 2011 15:43:03 +0000 (16:43 +0100)
Fixes bug 665161.

vapi/glib-2.0.vapi

index 5b79e463123fc2e45bd5a41d0e3c1875b38ecd45..a94755390d244918d5ec5e81b89a6ec288183252 100644 (file)
@@ -2685,8 +2685,19 @@ namespace GLib {
        [CCode (has_target = false)]
        public delegate void VoidFunc ();
 
+       [Deprecated (replacement = "format_size")]
        public string format_size_for_display (int64 size);
 
+       [CCode (cname = "g_format_size_full")]
+       public string format_size (uint64 size, FormatSizeFlags flags = FormatSizeFlags.DEFAULT);
+
+       [CCode (cprefix = "G_FORMAT_SIZE_", has_type_id = false)]
+       public enum FormatSizeFlags {
+               DEFAULT,
+               LONG_FORMAT,
+               IEC_UNITS
+       }
+
        /* Lexical Scanner */
        [CCode (has_target = false)]
        public delegate void ScannerMsgFunc (Scanner scanner, string message, bool error);