2000-10-09 18:24:57 +02:00
|
|
|
/* gspawn.h - Process launching
|
|
|
|
*
|
|
|
|
* Copyright 2000 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* GLib is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* GLib is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with GLib; see the file COPYING.LIB. If not, write
|
|
|
|
* to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2012-12-28 05:43:14 +01:00
|
|
|
#ifndef __G_SPAWN_H__
|
|
|
|
#define __G_SPAWN_H__
|
|
|
|
|
2011-10-12 06:24:46 +02:00
|
|
|
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
|
2008-03-14 20:30:38 +01:00
|
|
|
#error "Only <glib.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2001-06-26 18:01:21 +02:00
|
|
|
#include <glib/gerror.h>
|
2000-10-09 18:24:57 +02:00
|
|
|
|
Split glib.h into many header files mostly according to the resp.
2000-10-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
into many header files mostly according to the resp. *.c-files.
* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
__END_DECLS.
* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
gunicode.h, : Changed guard-macro names to something more
consistent.
* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
2000-10-12 13:52:07 +02:00
|
|
|
G_BEGIN_DECLS
|
2000-10-09 18:24:57 +02:00
|
|
|
|
2011-07-06 23:13:05 +02:00
|
|
|
|
2000-10-09 18:24:57 +02:00
|
|
|
/* I'm not sure I remember our proposed naming convention here. */
|
2011-07-06 23:13:05 +02:00
|
|
|
/**
|
|
|
|
* G_SPAWN_ERROR:
|
|
|
|
*
|
|
|
|
* Error domain for spawning processes. Errors in this domain will
|
|
|
|
* be from the #GSpawnError enumeration. See #GError for information on
|
|
|
|
* error domains.
|
|
|
|
*/
|
2000-10-09 18:24:57 +02:00
|
|
|
#define G_SPAWN_ERROR g_spawn_error_quark ()
|
|
|
|
|
2011-07-06 23:13:05 +02:00
|
|
|
/**
|
|
|
|
* GSpawnError:
|
|
|
|
* @G_SPAWN_ERROR_FORK: Fork failed due to lack of memory.
|
|
|
|
* @G_SPAWN_ERROR_READ: Read or select on pipes failed.
|
|
|
|
* @G_SPAWN_ERROR_CHDIR: Changing to working directory failed.
|
2011-12-14 05:00:16 +01:00
|
|
|
* @G_SPAWN_ERROR_ACCES: execv() returned <literal>EACCES</literal>
|
|
|
|
* @G_SPAWN_ERROR_PERM: execv() returned <literal>EPERM</literal>
|
2012-03-02 16:22:11 +01:00
|
|
|
* @G_SPAWN_ERROR_TOO_BIG: execv() returned <literal>E2BIG</literal>
|
|
|
|
* @G_SPAWN_ERROR_2BIG: deprecated alias for %G_SPAWN_ERROR_TOO_BIG
|
2011-12-14 05:00:16 +01:00
|
|
|
* @G_SPAWN_ERROR_NOEXEC: execv() returned <literal>ENOEXEC</literal>
|
|
|
|
* @G_SPAWN_ERROR_NAMETOOLONG: execv() returned <literal>ENAMETOOLONG</literal>
|
|
|
|
* @G_SPAWN_ERROR_NOENT: execv() returned <literal>ENOENT</literal>
|
|
|
|
* @G_SPAWN_ERROR_NOMEM: execv() returned <literal>ENOMEM</literal>
|
|
|
|
* @G_SPAWN_ERROR_NOTDIR: execv() returned <literal>ENOTDIR</literal>
|
|
|
|
* @G_SPAWN_ERROR_LOOP: execv() returned <literal>ELOOP</literal>
|
|
|
|
* @G_SPAWN_ERROR_TXTBUSY: execv() returned <literal>ETXTBUSY</literal>
|
|
|
|
* @G_SPAWN_ERROR_IO: execv() returned <literal>EIO</literal>
|
|
|
|
* @G_SPAWN_ERROR_NFILE: execv() returned <literal>ENFILE</literal>
|
|
|
|
* @G_SPAWN_ERROR_MFILE: execv() returned <literal>EMFILE</literal>
|
|
|
|
* @G_SPAWN_ERROR_INVAL: execv() returned <literal>EINVAL</literal>
|
|
|
|
* @G_SPAWN_ERROR_ISDIR: execv() returned <literal>EISDIR</literal>
|
|
|
|
* @G_SPAWN_ERROR_LIBBAD: execv() returned <literal>ELIBBAD</literal>
|
2011-07-06 23:13:05 +02:00
|
|
|
* @G_SPAWN_ERROR_FAILED: Some other fatal failure,
|
|
|
|
* <literal>error->message</literal> should explain.
|
|
|
|
*
|
|
|
|
* Error codes returned by spawning processes.
|
|
|
|
*/
|
2000-10-09 18:24:57 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
G_SPAWN_ERROR_FORK, /* fork failed due to lack of memory */
|
|
|
|
G_SPAWN_ERROR_READ, /* read or select on pipes failed */
|
|
|
|
G_SPAWN_ERROR_CHDIR, /* changing to working dir failed */
|
|
|
|
G_SPAWN_ERROR_ACCES, /* execv() returned EACCES */
|
|
|
|
G_SPAWN_ERROR_PERM, /* execv() returned EPERM */
|
2012-03-02 16:22:11 +01:00
|
|
|
G_SPAWN_ERROR_TOO_BIG,/* execv() returned E2BIG */
|
|
|
|
#ifndef G_DISABLE_DEPRECATED
|
|
|
|
G_SPAWN_ERROR_2BIG = G_SPAWN_ERROR_TOO_BIG,
|
|
|
|
#endif
|
2000-10-09 18:24:57 +02:00
|
|
|
G_SPAWN_ERROR_NOEXEC, /* execv() returned ENOEXEC */
|
|
|
|
G_SPAWN_ERROR_NAMETOOLONG, /* "" "" ENAMETOOLONG */
|
|
|
|
G_SPAWN_ERROR_NOENT, /* "" "" ENOENT */
|
|
|
|
G_SPAWN_ERROR_NOMEM, /* "" "" ENOMEM */
|
|
|
|
G_SPAWN_ERROR_NOTDIR, /* "" "" ENOTDIR */
|
|
|
|
G_SPAWN_ERROR_LOOP, /* "" "" ELOOP */
|
|
|
|
G_SPAWN_ERROR_TXTBUSY, /* "" "" ETXTBUSY */
|
|
|
|
G_SPAWN_ERROR_IO, /* "" "" EIO */
|
|
|
|
G_SPAWN_ERROR_NFILE, /* "" "" ENFILE */
|
|
|
|
G_SPAWN_ERROR_MFILE, /* "" "" EMFLE */
|
|
|
|
G_SPAWN_ERROR_INVAL, /* "" "" EINVAL */
|
|
|
|
G_SPAWN_ERROR_ISDIR, /* "" "" EISDIR */
|
|
|
|
G_SPAWN_ERROR_LIBBAD, /* "" "" ELIBBAD */
|
|
|
|
G_SPAWN_ERROR_FAILED /* other fatal failure, error->message
|
|
|
|
* should explain
|
|
|
|
*/
|
|
|
|
} GSpawnError;
|
|
|
|
|
2012-07-10 17:27:22 +02:00
|
|
|
/**
|
|
|
|
* G_SPAWN_EXIT_ERROR:
|
|
|
|
*
|
|
|
|
* Error domain used by g_spawn_check_exit_status(). The code
|
2012-08-19 05:15:58 +02:00
|
|
|
* will be the program exit code.
|
2012-07-10 17:27:22 +02:00
|
|
|
*/
|
|
|
|
#define G_SPAWN_EXIT_ERROR g_spawn_exit_error_quark ()
|
|
|
|
|
2011-07-06 23:13:05 +02:00
|
|
|
/**
|
|
|
|
* GSpawnChildSetupFunc:
|
|
|
|
* @user_data: user data to pass to the function.
|
|
|
|
*
|
|
|
|
* Specifies the type of the setup function passed to g_spawn_async(),
|
2011-10-15 21:52:28 +02:00
|
|
|
* g_spawn_sync() and g_spawn_async_with_pipes(), which can, in very
|
|
|
|
* limited ways, be used to affect the child's execution.
|
2011-07-06 23:13:05 +02:00
|
|
|
*
|
2011-10-15 21:52:28 +02:00
|
|
|
* On POSIX platforms, the function is called in the child after GLib
|
|
|
|
* has performed all the setup it plans to perform, but before calling
|
|
|
|
* exec(). Actions taken in this function will only affect the child,
|
|
|
|
* not the parent.
|
2011-07-06 23:13:05 +02:00
|
|
|
*
|
2011-10-15 21:52:28 +02:00
|
|
|
* On Windows, the function is called in the parent. Its usefulness on
|
2011-07-06 23:13:05 +02:00
|
|
|
* Windows is thus questionable. In many cases executing the child setup
|
|
|
|
* function in the parent can have ill effects, and you should be very
|
|
|
|
* careful when porting software to Windows that uses child setup
|
|
|
|
* functions.
|
2011-10-15 21:52:28 +02:00
|
|
|
*
|
|
|
|
* However, even on POSIX, you are extremely limited in what you can
|
|
|
|
* safely do from a #GSpawnChildSetupFunc, because any mutexes that
|
|
|
|
* were held by other threads in the parent process at the time of the
|
|
|
|
* fork() will still be locked in the child process, and they will
|
|
|
|
* never be unlocked (since the threads that held them don't exist in
|
|
|
|
* the child). POSIX allows only async-signal-safe functions (see
|
|
|
|
* <citerefentry><refentrytitle>signal</refentrytitle><manvolnum>7</manvolnum></citerefentry>)
|
|
|
|
* to be called in the child between fork() and exec(), which
|
|
|
|
* drastically limits the usefulness of child setup functions.
|
|
|
|
*
|
|
|
|
* In particular, it is not safe to call any function which may
|
|
|
|
* call malloc(), which includes POSIX functions such as setenv().
|
|
|
|
* If you need to set up the child environment differently from
|
|
|
|
* the parent, you should use g_get_environ(), g_environ_setenv(),
|
2011-12-14 05:00:16 +01:00
|
|
|
* and g_environ_unsetenv(), and then pass the complete environment
|
2011-10-15 21:52:28 +02:00
|
|
|
* list to the <literal>g_spawn...</literal> function.
|
2011-07-06 23:13:05 +02:00
|
|
|
*/
|
2000-10-09 18:24:57 +02:00
|
|
|
typedef void (* GSpawnChildSetupFunc) (gpointer user_data);
|
|
|
|
|
2011-07-06 23:13:05 +02:00
|
|
|
/**
|
|
|
|
* GSpawnFlags:
|
2013-05-31 01:07:55 +02:00
|
|
|
* @G_SPAWN_DEFAULT: no flags, default behaviour
|
2011-07-06 23:13:05 +02:00
|
|
|
* @G_SPAWN_LEAVE_DESCRIPTORS_OPEN: the parent's open file descriptors will be
|
|
|
|
* inherited by the child; otherwise all descriptors except stdin/stdout/stderr
|
|
|
|
* will be closed before calling exec() in the child.
|
|
|
|
* @G_SPAWN_DO_NOT_REAP_CHILD: the child will not be automatically reaped; you
|
|
|
|
* must use g_child_watch_add() yourself (or call waitpid()
|
|
|
|
* or handle <literal>SIGCHLD</literal> yourself), or the child will become a zombie.
|
|
|
|
* @G_SPAWN_SEARCH_PATH: <literal>argv[0]</literal> need not be an absolute path,
|
|
|
|
* it will be looked for in the user's <envar>PATH</envar>.
|
|
|
|
* @G_SPAWN_STDOUT_TO_DEV_NULL: the child's standard output will be discarded,
|
|
|
|
* instead of going to the same location as the parent's standard output.
|
|
|
|
* @G_SPAWN_STDERR_TO_DEV_NULL: the child's standard error will be discarded.
|
|
|
|
* @G_SPAWN_CHILD_INHERITS_STDIN: the child will inherit the parent's standard
|
|
|
|
* input (by default, the child's standard input is attached to
|
|
|
|
* <filename>/dev/null</filename>).
|
|
|
|
* @G_SPAWN_FILE_AND_ARGV_ZERO: the first element of <literal>argv</literal> is
|
|
|
|
* the file to execute, while the remaining elements are the actual argument
|
|
|
|
* vector to pass to the file. Normally g_spawn_async_with_pipes() uses
|
|
|
|
* <literal>argv[0]</literal> as the file to execute, and passes all of
|
|
|
|
* <literal>argv</literal> to the child.
|
2012-05-20 00:01:35 +02:00
|
|
|
* @G_SPAWN_SEARCH_PATH_FROM_ENVP: if <literal>argv[0]</literal> is not an abolute path,
|
|
|
|
* it will be looked for in the <envar>PATH</envar> from the passed child
|
|
|
|
* environment. Since: 2.34
|
2011-07-06 23:13:05 +02:00
|
|
|
*
|
|
|
|
* Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
|
|
|
|
*/
|
2000-10-09 18:24:57 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
2013-05-31 01:07:55 +02:00
|
|
|
G_SPAWN_DEFAULT = 0,
|
2000-10-09 18:24:57 +02:00
|
|
|
G_SPAWN_LEAVE_DESCRIPTORS_OPEN = 1 << 0,
|
2001-06-08 21:41:51 +02:00
|
|
|
G_SPAWN_DO_NOT_REAP_CHILD = 1 << 1,
|
2000-10-09 18:24:57 +02:00
|
|
|
/* look for argv[0] in the path i.e. use execvp() */
|
2001-06-08 21:41:51 +02:00
|
|
|
G_SPAWN_SEARCH_PATH = 1 << 2,
|
2000-10-09 18:24:57 +02:00
|
|
|
/* Dump output to /dev/null */
|
2001-06-08 21:41:51 +02:00
|
|
|
G_SPAWN_STDOUT_TO_DEV_NULL = 1 << 3,
|
|
|
|
G_SPAWN_STDERR_TO_DEV_NULL = 1 << 4,
|
|
|
|
G_SPAWN_CHILD_INHERITS_STDIN = 1 << 5,
|
2012-05-20 00:01:35 +02:00
|
|
|
G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6,
|
2012-11-15 15:22:37 +01:00
|
|
|
G_SPAWN_SEARCH_PATH_FROM_ENVP = 1 << 7
|
2000-10-09 18:24:57 +02:00
|
|
|
} GSpawnFlags;
|
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2000-10-09 18:24:57 +02:00
|
|
|
GQuark g_spawn_error_quark (void);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2012-07-10 17:27:22 +02:00
|
|
|
GQuark g_spawn_exit_error_quark (void);
|
2000-10-09 18:24:57 +02:00
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2000-10-09 18:24:57 +02:00
|
|
|
gboolean g_spawn_async (const gchar *working_directory,
|
|
|
|
gchar **argv,
|
|
|
|
gchar **envp,
|
|
|
|
GSpawnFlags flags,
|
|
|
|
GSpawnChildSetupFunc child_setup,
|
|
|
|
gpointer user_data,
|
2004-03-01 21:47:49 +01:00
|
|
|
GPid *child_pid,
|
2000-10-09 18:24:57 +02:00
|
|
|
GError **error);
|
|
|
|
|
|
|
|
|
|
|
|
/* Opens pipes for non-NULL standard_output, standard_input, standard_error,
|
|
|
|
* and returns the parent's end of the pipes.
|
|
|
|
*/
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2000-10-09 18:24:57 +02:00
|
|
|
gboolean g_spawn_async_with_pipes (const gchar *working_directory,
|
|
|
|
gchar **argv,
|
|
|
|
gchar **envp,
|
|
|
|
GSpawnFlags flags,
|
|
|
|
GSpawnChildSetupFunc child_setup,
|
|
|
|
gpointer user_data,
|
2004-03-01 21:47:49 +01:00
|
|
|
GPid *child_pid,
|
2000-10-09 18:24:57 +02:00
|
|
|
gint *standard_input,
|
|
|
|
gint *standard_output,
|
|
|
|
gint *standard_error,
|
|
|
|
GError **error);
|
|
|
|
|
|
|
|
|
|
|
|
/* If standard_output or standard_error are non-NULL, the full
|
|
|
|
* standard output or error of the command will be placed there.
|
|
|
|
*/
|
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2000-10-09 18:24:57 +02:00
|
|
|
gboolean g_spawn_sync (const gchar *working_directory,
|
|
|
|
gchar **argv,
|
|
|
|
gchar **envp,
|
|
|
|
GSpawnFlags flags,
|
|
|
|
GSpawnChildSetupFunc child_setup,
|
|
|
|
gpointer user_data,
|
|
|
|
gchar **standard_output,
|
|
|
|
gchar **standard_error,
|
|
|
|
gint *exit_status,
|
|
|
|
GError **error);
|
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2000-10-09 18:24:57 +02:00
|
|
|
gboolean g_spawn_command_line_sync (const gchar *command_line,
|
|
|
|
gchar **standard_output,
|
|
|
|
gchar **standard_error,
|
|
|
|
gint *exit_status,
|
|
|
|
GError **error);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2000-10-09 18:24:57 +02:00
|
|
|
gboolean g_spawn_command_line_async (const gchar *command_line,
|
|
|
|
GError **error);
|
|
|
|
|
2012-07-10 17:27:22 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_34
|
|
|
|
gboolean g_spawn_check_exit_status (gint exit_status,
|
|
|
|
GError **error);
|
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2004-03-01 21:47:49 +01:00
|
|
|
void g_spawn_close_pid (GPid pid);
|
|
|
|
|
2012-11-16 00:18:54 +01:00
|
|
|
#ifdef G_OS_WIN32
|
|
|
|
#define g_spawn_async g_spawn_async_utf8
|
|
|
|
#define g_spawn_async_with_pipes g_spawn_async_with_pipes_utf8
|
|
|
|
#define g_spawn_sync g_spawn_sync_utf8
|
|
|
|
#define g_spawn_command_line_sync g_spawn_command_line_sync_utf8
|
|
|
|
#define g_spawn_command_line_async g_spawn_command_line_async_utf8
|
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2012-11-16 00:18:54 +01:00
|
|
|
gboolean g_spawn_async_utf8 (const gchar *working_directory,
|
|
|
|
gchar **argv,
|
|
|
|
gchar **envp,
|
|
|
|
GSpawnFlags flags,
|
|
|
|
GSpawnChildSetupFunc child_setup,
|
|
|
|
gpointer user_data,
|
|
|
|
GPid *child_pid,
|
|
|
|
GError **error);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2012-11-16 00:18:54 +01:00
|
|
|
gboolean g_spawn_async_with_pipes_utf8 (const gchar *working_directory,
|
|
|
|
gchar **argv,
|
|
|
|
gchar **envp,
|
|
|
|
GSpawnFlags flags,
|
|
|
|
GSpawnChildSetupFunc child_setup,
|
|
|
|
gpointer user_data,
|
|
|
|
GPid *child_pid,
|
|
|
|
gint *standard_input,
|
|
|
|
gint *standard_output,
|
|
|
|
gint *standard_error,
|
|
|
|
GError **error);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2012-11-16 00:18:54 +01:00
|
|
|
gboolean g_spawn_sync_utf8 (const gchar *working_directory,
|
|
|
|
gchar **argv,
|
|
|
|
gchar **envp,
|
|
|
|
GSpawnFlags flags,
|
|
|
|
GSpawnChildSetupFunc child_setup,
|
|
|
|
gpointer user_data,
|
|
|
|
gchar **standard_output,
|
|
|
|
gchar **standard_error,
|
|
|
|
gint *exit_status,
|
|
|
|
GError **error);
|
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2012-11-16 00:18:54 +01:00
|
|
|
gboolean g_spawn_command_line_sync_utf8 (const gchar *command_line,
|
|
|
|
gchar **standard_output,
|
|
|
|
gchar **standard_error,
|
|
|
|
gint *exit_status,
|
|
|
|
GError **error);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2012-11-16 00:18:54 +01:00
|
|
|
gboolean g_spawn_command_line_async_utf8 (const gchar *command_line,
|
|
|
|
GError **error);
|
|
|
|
#endif
|
|
|
|
|
Split glib.h into many header files mostly according to the resp.
2000-10-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
into many header files mostly according to the resp. *.c-files.
* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
__END_DECLS.
* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
gunicode.h, : Changed guard-macro names to something more
consistent.
* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
2000-10-12 13:52:07 +02:00
|
|
|
G_END_DECLS
|
2000-10-09 18:24:57 +02:00
|
|
|
|
Split glib.h into many header files mostly according to the resp.
2000-10-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
into many header files mostly according to the resp. *.c-files.
* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
__END_DECLS.
* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
gunicode.h, : Changed guard-macro names to something more
consistent.
* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
2000-10-12 13:52:07 +02:00
|
|
|
#endif /* __G_SPAWN_H__ */
|