From: Reuben Thomas Date: Fri, 18 Apr 2025 12:46:42 +0000 (+0100) Subject: glib-2.0: allow FileUtils.open_tmp's first argument to be null X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc90918b336f62855baab099abc75bb13d89e38e;p=thirdparty%2Fvala.git glib-2.0: allow FileUtils.open_tmp's first argument to be null This is allowed in GLib to use a default template for the file name. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 41ff2feaa..9bbb7b759 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4134,7 +4134,7 @@ namespace GLib { [CCode (cname = "g_file_set_contents")] public static bool set_data (string filename, [CCode (type = "const char*", array_length_type = "gsize")] uint8[] contents) throws FileError; public static bool test (string filename, FileTest test); - public static int open_tmp (string tmpl, out string name_used) throws FileError; + public static int open_tmp (string? tmpl, out string name_used) throws FileError; [Version (since = "2.4")] public static string read_link (string filename) throws FileError; public static int error_from_errno (int err_no);