Commit 5ff78a00 authored by Evan Nemerson's avatar Evan Nemerson
Browse files

glib-2.0: mark envp parameters in GLib.Environ methods as nullable

parent 6dcc759b
......@@ -2563,11 +2563,11 @@ namespace GLib {
[CCode (cname = "g_get_environ", array_length = false, array_null_terminated = true)]
public static string[] get ();
[CCode (cname = "g_environ_getenv")]
public static string? get_variable ([CCode (array_length = false, array_null_terminated = true)] string[] envp, string variable);
public static string? get_variable ([CCode (array_length = false, array_null_terminated = true)] string[]? envp, string variable);
[CCode (cname = "g_environ_setenv", array_length = false, array_null_terminated = true)]
public static string[] set_variable ([CCode (array_length = false, array_null_terminated = true)] owned string[] envp, string variable, string value, bool overwrite = true);
public static string[] set_variable ([CCode (array_length = false, array_null_terminated = true)] owned string[]? envp, string variable, string value, bool overwrite = true);
[CCode (cname = "g_environ_unsetenv", array_length = false, array_null_terminated = true)]
public static string[] unset_variable ([CCode (array_length = false, array_null_terminated = true)] owned string[] envp, string variable);
public static string[] unset_variable ([CCode (array_length = false, array_null_terminated = true)] owned string[]? envp, string variable);
}
[CCode (has_type_id = false)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment