ROOT  6.05/03
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gshell.h
Go to the documentation of this file.
1 /* gshell.h - Shell-related utilities
2  *
3  * Copyright 2000 Red Hat, Inc.
4  *
5  * GLib is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * GLib is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with GLib; see the file COPYING.LIB. If not, write
17  * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20 
21 #ifndef __G_SHELL_H__
22 #define __G_SHELL_H__
23 
24 #include <glib/gerror.h>
25 
27 
28 #define G_SHELL_ERROR g_shell_error_quark ()
29 
30 typedef enum
31 {
32  /* mismatched or otherwise mangled quoting */
34  /* string to be parsed was empty */
37 } GShellError;
38 
40 
41 gchar* g_shell_quote (const gchar *unquoted_string);
42 gchar* g_shell_unquote (const gchar *quoted_string,
43  GError **error);
44 gboolean g_shell_parse_argv (const gchar *command_line,
45  gint *argcp,
46  gchar ***argvp,
47  GError **error);
48 
50 
51 #endif /* __G_SHELL_H__ */
52 
53 
GQuark g_shell_error_quark(void)
Definition: gshell.c:33
#define G_END_DECLS
Definition: gmacros.h:109
GShellError
Definition: gshell.h:30
G_BEGIN_DECLS typedef char gchar
Definition: g_types.h:41
gint gboolean
Definition: g_types.h:45
gchar * g_shell_quote(const gchar *unquoted_string)
g_shell_quote: : a literal string
Definition: gshell.c:178
int gint
Definition: g_types.h:44
#define G_BEGIN_DECLS
Definition: gmacros.h:108
typedefG_BEGIN_DECLS struct _GError GError
Definition: gerror.h:28
gboolean g_shell_parse_argv(const gchar *command_line, gint *argcp, gchar ***argvp, GError **error)
g_shell_parse_argv: : command line to parse : return location for number of args : return location fo...
Definition: gshell.c:587
G_BEGIN_DECLS typedef guint32 GQuark
Definition: gquark.h:34
static int error(void)
Definition: testgdk.c:106
gchar * g_shell_unquote(const gchar *quoted_string, GError **error)
g_shell_unquote: : shell-quoted string : error return location or NULL
Definition: gshell.c:244