From: Rico Tzschichholz Date: Thu, 5 Dec 2019 17:03:13 +0000 (+0100) Subject: glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid X-Git-Tag: 0.47.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf4a50cbbfd45f88256c1ac669dc511f634bb54f;p=thirdparty%2Fvala.git glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 7e55b7bbd..6453ee841 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1952,6 +1952,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); @@ -1973,6 +1976,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]