]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: allow FileUtils.open_tmp's first argument to be null
authorReuben Thomas <rrt@sc3d.org>
Fri, 18 Apr 2025 12:46:42 +0000 (13:46 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 18 Apr 2025 14:40:45 +0000 (14:40 +0000)
This is allowed in GLib to use a default template for the file name.

vapi/glib-2.0.vapi

index 41ff2feaa83c9b9e596ea64c963fecbb561864f9..9bbb7b7597c3b30a4696c7697dcc294cfdee21e9 100644 (file)
@@ -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);