[vala/0.40] glib-2.0: Add binding for g_poll()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] glib-2.0: Add binding for g_poll()
- Date: Tue, 24 Mar 2020 09:46:35 +0000 (UTC)
commit 17876cca28241fa6c86bc55da5c08b8c899ee182
Author: ZUHONG TAO <taozuhong gmail com>
Date: Wed Mar 11 14:59:17 2020 +0000
glib-2.0: Add binding for g_poll()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/924
vapi/glib-2.0.vapi | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 915d82ac6..ecb99b125 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1852,6 +1852,8 @@ namespace GLib {
[CCode (has_target = false)]
public delegate int PollFunc (PollFD[] ufds, int timeout_);
+ public int poll ([CCode (array_length_type = "guint")] PollFD[] fds, int timeout);
+
[CCode (cname = "GSource")]
public class TimeoutSource : Source {
public TimeoutSource (uint interval);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]