[vala] glib-2.0: Update bindings for g_format_*()



commit 48a40aa63214f153cafcf5e60574eb512dbd5942
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Nov 30 01:33:18 2011 +0200

    glib-2.0: Update bindings for g_format_*()
    
    Fixes bug 665161.

 vapi/glib-2.0.vapi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 5b79e46..a947553 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]