mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 21:34:12 +02:00
gio: Add filename type annotations
https://bugzilla.gnome.org/show_bug.cgi?id=767245
This commit is contained in:
committed by
Christoph Reiter
parent
41013a01f4
commit
f8189ddf98
@@ -225,7 +225,8 @@ g_subprocess_launcher_new (GSubprocessFlags flags)
|
||||
/**
|
||||
* g_subprocess_launcher_set_environ:
|
||||
* @self: a #GSubprocess
|
||||
* @env: the replacement environment
|
||||
* @env: (array zero-terminated=1) (element-type filename) (nullable) (transfer none):
|
||||
* the replacement environment
|
||||
*
|
||||
* Replace the entire environment of processes launched from this
|
||||
* launcher with the given 'environ' variable.
|
||||
@@ -253,8 +254,9 @@ g_subprocess_launcher_set_environ (GSubprocessLauncher *self,
|
||||
/**
|
||||
* g_subprocess_launcher_setenv:
|
||||
* @self: a #GSubprocess
|
||||
* @variable: the environment variable to set, must not contain '='
|
||||
* @value: the new value for the variable
|
||||
* @variable: (type filename): the environment variable to set,
|
||||
* must not contain '='
|
||||
* @value: (type filename): the new value for the variable
|
||||
* @overwrite: whether to change the variable if it already exists
|
||||
*
|
||||
* Sets the environment variable @variable in the environment of
|
||||
@@ -278,7 +280,8 @@ g_subprocess_launcher_setenv (GSubprocessLauncher *self,
|
||||
/**
|
||||
* g_subprocess_launcher_unsetenv:
|
||||
* @self: a #GSubprocess
|
||||
* @variable: the environment variable to unset, must not contain '='
|
||||
* @variable: (type filename): the environment variable to unset,
|
||||
* must not contain '='
|
||||
*
|
||||
* Removes the environment variable @variable from the environment of
|
||||
* processes launched from this launcher.
|
||||
@@ -298,7 +301,7 @@ g_subprocess_launcher_unsetenv (GSubprocessLauncher *self,
|
||||
/**
|
||||
* g_subprocess_launcher_getenv:
|
||||
* @self: a #GSubprocess
|
||||
* @variable: the environment variable to get
|
||||
* @variable: (type filename): the environment variable to get
|
||||
*
|
||||
* Returns the value of the environment variable @variable in the
|
||||
* environment of processes launched from this launcher.
|
||||
@@ -306,7 +309,8 @@ g_subprocess_launcher_unsetenv (GSubprocessLauncher *self,
|
||||
* On UNIX, the returned string can be an arbitrary byte string.
|
||||
* On Windows, it will be UTF-8.
|
||||
*
|
||||
* Returns: the value of the environment variable, %NULL if unset
|
||||
* Returns: (type filename): the value of the environment variable,
|
||||
* %NULL if unset
|
||||
*
|
||||
* Since: 2.40
|
||||
**/
|
||||
@@ -320,7 +324,7 @@ g_subprocess_launcher_getenv (GSubprocessLauncher *self,
|
||||
/**
|
||||
* g_subprocess_launcher_set_cwd:
|
||||
* @self: a #GSubprocess
|
||||
* @cwd: the cwd for launched processes
|
||||
* @cwd: (type filename): the cwd for launched processes
|
||||
*
|
||||
* Sets the current working directory that processes will be launched
|
||||
* with.
|
||||
@@ -403,7 +407,7 @@ assign_fd (gint *fd_ptr, gint fd)
|
||||
/**
|
||||
* g_subprocess_launcher_set_stdin_file_path:
|
||||
* @self: a #GSubprocessLauncher
|
||||
* @path: a filename or %NULL
|
||||
* @path: (type filename) (nullable: a filename or %NULL
|
||||
*
|
||||
* Sets the file path to use as the stdin for spawned processes.
|
||||
*
|
||||
@@ -466,7 +470,7 @@ g_subprocess_launcher_take_stdin_fd (GSubprocessLauncher *self,
|
||||
/**
|
||||
* g_subprocess_launcher_set_stdout_file_path:
|
||||
* @self: a #GSubprocessLauncher
|
||||
* @path: a filename or %NULL
|
||||
* @path: (type filename) (nullable): a filename or %NULL
|
||||
*
|
||||
* Sets the file path to use as the stdout for spawned processes.
|
||||
*
|
||||
@@ -529,7 +533,7 @@ g_subprocess_launcher_take_stdout_fd (GSubprocessLauncher *self,
|
||||
/**
|
||||
* g_subprocess_launcher_set_stderr_file_path:
|
||||
* @self: a #GSubprocessLauncher
|
||||
* @path: a filename or %NULL
|
||||
* @path: (type filename) (nullable): a filename or %NULL
|
||||
*
|
||||
* Sets the file path to use as the stderr for spawned processes.
|
||||
*
|
||||
@@ -711,7 +715,7 @@ g_subprocess_launcher_spawn (GSubprocessLauncher *launcher,
|
||||
/**
|
||||
* g_subprocess_launcher_spawnv:
|
||||
* @self: a #GSubprocessLauncher
|
||||
* @argv: (array zero-terminated=1) (element-type utf8): Command line arguments
|
||||
* @argv: (array zero-terminated=1) (element-type filename): Command line arguments
|
||||
* @error: Error
|
||||
*
|
||||
* Creates a #GSubprocess given a provided array of arguments.
|
||||
|
Reference in New Issue
Block a user