[vala/staging] glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid
- Date: Fri, 6 Dec 2019 08:43:50 +0000 (UTC)
commit cf4a50cbbfd45f88256c1ac669dc511f634bb54f
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 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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]