[vala/staging: 2/2] glib-2.0: Add binding for g_poll()



commit b893c030da42f73182907044b93e9737b5654bc2
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 d96f4876d..1285f96cf 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1924,6 +1924,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]