From: Zeeshan Ali (Khattak) Date: Tue, 29 Nov 2011 23:33:18 +0000 (+0200) Subject: glib-2.0: Update bindings for g_format_*() X-Git-Tag: 0.15.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48a40aa63214f153cafcf5e60574eb512dbd5942;p=thirdparty%2Fvala.git glib-2.0: Update bindings for g_format_*() Fixes bug 665161. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 5b79e4631..a94755390 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -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);