gshell.h

Go to the documentation of this file.
00001 /* gshell.h - Shell-related utilities
00002  *
00003  *  Copyright 2000 Red Hat, Inc.
00004  *
00005  * GLib is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public License as
00007  * published by the Free Software Foundation; either version 2 of the
00008  * License, or (at your option) any later version.
00009  *
00010  * GLib is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with GLib; see the file COPYING.LIB.  If not, write
00017  * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef __G_SHELL_H__
00022 #define __G_SHELL_H__
00023 
00024 #include <gerror.h>
00025 
00026 G_BEGIN_DECLS
00027 
00028 #define G_SHELL_ERROR g_shell_error_quark ()
00029 
00030 typedef enum
00031 {
00032   /* mismatched or otherwise mangled quoting */
00033   G_SHELL_ERROR_BAD_QUOTING,
00034   /* string to be parsed was empty */
00035   G_SHELL_ERROR_EMPTY_STRING,
00036   G_SHELL_ERROR_FAILED
00037 } GShellError;
00038 
00039 GQuark g_shell_error_quark (void);
00040 
00041 gchar*   g_shell_quote      (const gchar   *unquoted_string);
00042 gchar*   g_shell_unquote    (const gchar   *quoted_string,
00043                              GError       **error);
00044 gboolean g_shell_parse_argv (const gchar   *command_line,
00045                              gint          *argcp,
00046                              gchar       ***argvp,
00047                              GError       **error);
00048 
00049 G_END_DECLS
00050 
00051 #endif /* __G_SHELL_H__ */
00052 
00053 

Generated on Tue Jul 5 14:14:41 2011 for ROOT_528-00b_version by  doxygen 1.5.1