From bc90918b336f62855baab099abc75bb13d89e38e Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Fri, 18 Apr 2025 13:46:42 +0100 Subject: [PATCH] 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. --- vapi/glib-2.0.vapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2