[vala/0.14] glib-2.0: Update bindings for g_format_*()
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.14] glib-2.0: Update bindings for g_format_*()
- Date: Mon, 5 Dec 2011 21:33:12 +0000 (UTC)
commit 95c3add9ea1aa1486c7b364a863124d3726e2e12
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 | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 22261a8..ef67fdd 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]