Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gsubprocesslauncher.h
Go to the documentation of this file.
1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright © 2012,2013 Colin Walters <walters@verbum.org>
4 * Copyright © 2012,2013 Canonical Limited
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General
19 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 *
21 * Author: Ryan Lortie <desrt@desrt.ca>
22 * Author: Colin Walters <walters@verbum.org>
23 */
24
25#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
26#error "Only <gio/gio.h> can be included directly."
27#endif
28
29#ifndef __G_SUBPROCESS_LAUNCHER_H__
30#define __G_SUBPROCESS_LAUNCHER_H__
31
32#include <gio/giotypes.h>
33
35
36#define G_TYPE_SUBPROCESS_LAUNCHER (g_subprocess_launcher_get_type ())
37#define G_SUBPROCESS_LAUNCHER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SUBPROCESS_LAUNCHER, GSubprocessLauncher))
38#define G_IS_SUBPROCESS_LAUNCHER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SUBPROCESS_LAUNCHER))
39
42
45
48 GError **error,
49 const gchar *argv0,
51
54 const gchar * const *argv,
55 GError **error);
56
59 gchar **env);
60
63 const gchar *variable,
64 const gchar *value,
65 gboolean overwrite);
66
69 const gchar *variable);
70
73 const gchar *variable);
74
77 const gchar *cwd);
80 GSubprocessFlags flags);
81
82/* Extended I/O control, only available on UNIX */
83#ifdef G_OS_UNIX
86 const gchar *path);
89 gint fd);
92 const gchar *path);
95 gint fd);
98 const gchar *path);
101 gint fd);
102
105 gint source_fd,
106 gint target_fd);
107
110
111/* Child setup, only available on UNIX */
114 GSpawnChildSetupFunc child_setup,
115 gpointer user_data,
116 GDestroyNotify destroy_notify);
117#endif
118
120
121#endif /* __G_SUBPROCESS_H__ */
#define GIO_AVAILABLE_IN_2_40
#define GIO_AVAILABLE_IN_2_68
GSubprocessFlags
Definition gioenums.h:2036
struct _GSubprocess GSubprocess
Definition giotypes.h:552
struct _GSubprocessLauncher GSubprocessLauncher
Definition giotypes.h:553
#define G_END_DECLS
Definition gmacros.h:910
#define G_GNUC_NULL_TERMINATED
Definition gmacros.h:326
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
void(* GSpawnChildSetupFunc)(gpointer data)
Definition gspawn.h:140
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_take_stdin_fd(GSubprocessLauncher *self, gint fd)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_set_stdin_file_path(GSubprocessLauncher *self, const gchar *path)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_take_stderr_fd(GSubprocessLauncher *self, gint fd)
GIO_AVAILABLE_IN_2_40 const gchar * g_subprocess_launcher_getenv(GSubprocessLauncher *self, const gchar *variable)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_take_fd(GSubprocessLauncher *self, gint source_fd, gint target_fd)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_setenv(GSubprocessLauncher *self, const gchar *variable, const gchar *value, gboolean overwrite)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_unsetenv(GSubprocessLauncher *self, const gchar *variable)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_set_flags(GSubprocessLauncher *self, GSubprocessFlags flags)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_take_stdout_fd(GSubprocessLauncher *self, gint fd)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_set_stderr_file_path(GSubprocessLauncher *self, const gchar *path)
GIO_AVAILABLE_IN_2_68 void g_subprocess_launcher_close(GSubprocessLauncher *self)
GIO_AVAILABLE_IN_2_40 GSubprocessLauncher * g_subprocess_launcher_new(GSubprocessFlags flags)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_set_cwd(GSubprocessLauncher *self, const gchar *cwd)
GIO_AVAILABLE_IN_2_40 GType g_subprocess_launcher_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_set_environ(GSubprocessLauncher *self, gchar **env)
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_set_child_setup(GSubprocessLauncher *self, GSpawnChildSetupFunc child_setup, gpointer user_data, GDestroyNotify destroy_notify)
GIO_AVAILABLE_IN_2_40 GSubprocess * g_subprocess_launcher_spawn(GSubprocessLauncher *self, GError **error, const gchar *argv0,...) G_GNUC_NULL_TERMINATED
GIO_AVAILABLE_IN_2_40 void g_subprocess_launcher_set_stdout_file_path(GSubprocessLauncher *self, const gchar *path)
GIO_AVAILABLE_IN_2_40 GSubprocess * g_subprocess_launcher_spawnv(GSubprocessLauncher *self, const gchar *const *argv, GError **error)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
void * gpointer
Definition gtypes.h:109
int gint
Definition gtypes.h:55
void(* GDestroyNotify)(gpointer data)
Definition gtypes.h:140
int value
Definition lsqlite3.c:2155
static void error(LoadState *S, const char *why)