From e0a963f2c54aefd0bdcc899434209edc0b3ba4e8 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 5 Dec 2019 18:47:51 +0100 Subject: [PATCH] glib-2.0: Add new symbols from 2.64 --- vapi/glib-2.0.vapi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 6453ee841..6a2109f3e 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1958,6 +1958,9 @@ namespace GLib { } public delegate void ChildWatchFunc (Pid pid, int status); + [Version (since = "2.64")] + [CCode (has_target = false)] + public delegate void SourceDisposeFunc (Source source); [CCode (cname = "GSource")] public class ChildWatchSource : Source { @@ -2008,6 +2011,8 @@ namespace GLib { public unowned MainContext get_context (); public void set_callback (owned SourceFunc func); public void set_callback_indirect (void* callback_data, SourceCallbackFuncs callback_funcs); + [Version (since = "2.64")] + public void set_dispose_function (SourceDisposeFunc dispose); [Version (since = "2.36")] public void* add_unix_fd (int fd, IOCondition events); [Version (since = "2.36")] @@ -6064,6 +6069,11 @@ namespace GLib { public SignalSource (int signum); } +#if UNIX + [Version (since = "2.64")] + [CCode (cheader_filename = "glib-unix.h")] + public static Posix.Passwd get_passwd_entry (string user_name) throws GLib.Error; +#endif [Version (since = "2.30")] [CCode (cheader_filename = "glib-unix.h")] public static bool open_pipe ([CCode (array_length = false, array_null_terminated = false)] int[] fds, int flags) throws GLib.Error; -- 2.47.2