[vala/0.46] 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/0.46] glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid
- Date: Wed, 5 Feb 2020 10:03:06 +0000 (UTC)
commit 2891770bc3115c780de74cd0040df19b8ac0801d
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 58a0055ae..44b2cb052 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1891,6 +1891,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);
@@ -1912,6 +1915,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]