Warning, file /include/glib-2.0/gio/gsubprocesslauncher.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0026 #error "Only <gio/gio.h> can be included directly."
0027 #endif
0028
0029 #ifndef __G_SUBPROCESS_LAUNCHER_H__
0030 #define __G_SUBPROCESS_LAUNCHER_H__
0031
0032 #include <gio/giotypes.h>
0033
0034 G_BEGIN_DECLS
0035
0036 #define G_TYPE_SUBPROCESS_LAUNCHER (g_subprocess_launcher_get_type ())
0037 #define G_SUBPROCESS_LAUNCHER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SUBPROCESS_LAUNCHER, GSubprocessLauncher))
0038 #define G_IS_SUBPROCESS_LAUNCHER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SUBPROCESS_LAUNCHER))
0039
0040 GIO_AVAILABLE_IN_2_40
0041 GType g_subprocess_launcher_get_type (void) G_GNUC_CONST;
0042
0043 GIO_AVAILABLE_IN_2_40
0044 GSubprocessLauncher * g_subprocess_launcher_new (GSubprocessFlags flags);
0045
0046 GIO_AVAILABLE_IN_2_40
0047 GSubprocess * g_subprocess_launcher_spawn (GSubprocessLauncher *self,
0048 GError **error,
0049 const gchar *argv0,
0050 ...) G_GNUC_NULL_TERMINATED;
0051
0052 GIO_AVAILABLE_IN_2_40
0053 GSubprocess * g_subprocess_launcher_spawnv (GSubprocessLauncher *self,
0054 const gchar * const *argv,
0055 GError **error);
0056
0057 GIO_AVAILABLE_IN_2_40
0058 void g_subprocess_launcher_set_environ (GSubprocessLauncher *self,
0059 gchar **env);
0060
0061 GIO_AVAILABLE_IN_2_40
0062 void g_subprocess_launcher_setenv (GSubprocessLauncher *self,
0063 const gchar *variable,
0064 const gchar *value,
0065 gboolean overwrite);
0066
0067 GIO_AVAILABLE_IN_2_40
0068 void g_subprocess_launcher_unsetenv (GSubprocessLauncher *self,
0069 const gchar *variable);
0070
0071 GIO_AVAILABLE_IN_2_40
0072 const gchar * g_subprocess_launcher_getenv (GSubprocessLauncher *self,
0073 const gchar *variable);
0074
0075 GIO_AVAILABLE_IN_2_40
0076 void g_subprocess_launcher_set_cwd (GSubprocessLauncher *self,
0077 const gchar *cwd);
0078 GIO_AVAILABLE_IN_2_40
0079 void g_subprocess_launcher_set_flags (GSubprocessLauncher *self,
0080 GSubprocessFlags flags);
0081
0082
0083 #ifdef G_OS_UNIX
0084 GIO_AVAILABLE_IN_2_40
0085 void g_subprocess_launcher_set_stdin_file_path (GSubprocessLauncher *self,
0086 const gchar *path);
0087 GIO_AVAILABLE_IN_2_40
0088 void g_subprocess_launcher_take_stdin_fd (GSubprocessLauncher *self,
0089 gint fd);
0090 GIO_AVAILABLE_IN_2_40
0091 void g_subprocess_launcher_set_stdout_file_path (GSubprocessLauncher *self,
0092 const gchar *path);
0093 GIO_AVAILABLE_IN_2_40
0094 void g_subprocess_launcher_take_stdout_fd (GSubprocessLauncher *self,
0095 gint fd);
0096 GIO_AVAILABLE_IN_2_40
0097 void g_subprocess_launcher_set_stderr_file_path (GSubprocessLauncher *self,
0098 const gchar *path);
0099 GIO_AVAILABLE_IN_2_40
0100 void g_subprocess_launcher_take_stderr_fd (GSubprocessLauncher *self,
0101 gint fd);
0102
0103 GIO_AVAILABLE_IN_2_40
0104 void g_subprocess_launcher_take_fd (GSubprocessLauncher *self,
0105 gint source_fd,
0106 gint target_fd);
0107
0108 GIO_AVAILABLE_IN_2_68
0109 void g_subprocess_launcher_close (GSubprocessLauncher *self);
0110
0111
0112 GIO_AVAILABLE_IN_2_40
0113 void g_subprocess_launcher_set_child_setup (GSubprocessLauncher *self,
0114 GSpawnChildSetupFunc child_setup,
0115 gpointer user_data,
0116 GDestroyNotify destroy_notify);
0117 #endif
0118
0119 G_END_DECLS
0120
0121 #endif