]> 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>
Mon, 5 Dec 2011 21:31:38 +0000 (22:31 +0100)
Fixes bug 665161.

vapi/glib-2.0.vapi

index 22261a831441426f365fdad8b3f133883798bad8..ef67fdd0d25a1a60cc2e81bf048b96e5ea51797c 100644 (file)
@@ -2678,6 +2678,16 @@ namespace GLib {
 
        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);