[vala/0.40] glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid



commit 6c3dee23d119c9c682be30608d6f2bb736ef08a9
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Dec 5 18:03:13 2019 +0100

    glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid

 vapi/glib-2.0.vapi | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index b7158a035..2dd25f925 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1888,6 +1888,9 @@ namespace GLib {
                [CCode (cname = "G_PID_FORMAT")]
                [Version (since = "2.50")]
                public const string FORMAT;
+
+               [CCode (cname = "g_strdup_printf", instance_pos = -1)]
+               public string to_string (string format = "%" + FORMAT);
        }
 
        public delegate void ChildWatchFunc (Pid pid, int status);
@@ -1909,6 +1912,12 @@ namespace GLib {
                public int fd;
                public IOCondition events;
                public IOCondition revents;
+
+               [CCode (cname = "G_POLLFD_FORMAT")]
+               public const string FORMAT;
+
+               [CCode (cname = "g_strdup_printf", instance_pos = -1)]
+               public string to_string (string format = "%" + FORMAT);
        }
 
        [Compact]


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