diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-12-05 18:03:13 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-12-06 09:29:08 +0100 |
commit | cf4a50cbbfd45f88256c1ac669dc511f634bb54f (patch) | |
tree | dc6f6c5cd915b4b6367ed8197572bc5868f36cab | |
parent | 804160db9fcaffdf88b68cf1935f24ac3cdc461d (diff) | |
download | vala-cf4a50cbbfd45f88256c1ac669dc511f634bb54f.tar.gz |
glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid
-rw-r--r-- | vapi/glib-2.0.vapi | 9 |
1 files changed, 9 insertions, 0 deletions
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] |