From 95c3add9ea1aa1486c7b364a863124d3726e2e12 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Wed, 30 Nov 2011 01:33:18 +0200 Subject: [PATCH] glib-2.0: Update bindings for g_format_*() Fixes bug 665161. --- vapi/glib-2.0.vapi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 22261a831..ef67fdd0d 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -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); -- 2.47.2