[vte] lib: Add missing nullable annotation to spawn child setup functions
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] lib: Add missing nullable annotation to spawn child setup functions
- Date: Wed, 21 Oct 2020 09:41:08 +0000 (UTC)
commit 6557b6eec39cafdb334aa59f59984d99abb946c1
Author: Hugo Parente Lima <hugo pl gmail com>
Date: Wed Oct 21 11:40:32 2020 +0200
lib: Add missing nullable annotation to spawn child setup functions
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/293
src/vtegtk.cc | 8 ++++----
src/vtepty.cc | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index cb35ceaa..8d725255 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -3423,8 +3423,8 @@ spawn_async_cb(GObject *source,
* @n_map_fds: the number of elements in @map_fds, or 0 if @map_fds is %NULL
* @spawn_flags: flags from #GSpawnFlags
* @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for
@child_setup_data, or %NULL
* @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
* @cancellable: (allow-none): a #GCancellable, or %NULL
* @callback: (nullable) (scope async): a #VteTerminalSpawnAsyncCallback, or %NULL
@@ -3538,8 +3538,8 @@ catch (...)
* variables to be added to the environment before starting the process, or %NULL
* @spawn_flags: flags from #GSpawnFlags
* @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for
@child_setup_data, or %NULL
* @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
* @cancellable: (allow-none): a #GCancellable, or %NULL
* @callback: (nullable) (scope async): a #VteTerminalSpawnAsyncCallback, or %NULL
diff --git a/src/vtepty.cc b/src/vtepty.cc
index 128c0215..7d5f2498 100644
--- a/src/vtepty.cc
+++ b/src/vtepty.cc
@@ -731,8 +731,8 @@ _vte_pty_check_envv(char const* const* strv) noexcept
* @n_map_fds: the number of elements in @map_fds, or 0 if @map_fds is %NULL
* @spawn_flags: flags from #GSpawnFlags
* @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for
@child_setup_data, or %NULL
* @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
* @cancellable: (allow-none): a #GCancellable, or %NULL
* @callback: (nullable) (scope async): a #GAsyncReadyCallback, or %NULL
@@ -850,8 +850,8 @@ catch (...)
* variables to be added to the environment before starting the process, or %NULL
* @spawn_flags: flags from #GSpawnFlags
* @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for
@child_setup_data, or %NULL
* @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
* @cancellable: (allow-none): a #GCancellable, or %NULL
* @callback: (nullable) (scope async): a #GAsyncReadyCallback, or %NULL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]