Blame glib/glib/gshell.h

Packit db3073
/* gshell.h - Shell-related utilities
Packit db3073
 *
Packit db3073
 *  Copyright 2000 Red Hat, Inc.
Packit db3073
 *
Packit db3073
 * GLib is free software; you can redistribute it and/or
Packit db3073
 * modify it under the terms of the GNU Lesser General Public License as
Packit db3073
 * published by the Free Software Foundation; either version 2 of the
Packit db3073
 * License, or (at your option) any later version.
Packit db3073
 *
Packit db3073
 * GLib is distributed in the hope that it will be useful,
Packit db3073
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit db3073
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit db3073
 * Lesser General Public License for more details.
Packit db3073
 *
Packit db3073
 * You should have received a copy of the GNU Lesser General Public
Packit db3073
 * License along with GLib; see the file COPYING.LIB.  If not, write
Packit db3073
 * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit db3073
 * Boston, MA 02111-1307, USA.
Packit db3073
 */
Packit db3073
Packit db3073
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
Packit db3073
#error "Only <glib.h> can be included directly."
Packit db3073
#endif
Packit db3073
Packit db3073
#ifndef __G_SHELL_H__
Packit db3073
#define __G_SHELL_H__
Packit db3073
Packit db3073
#include <glib/gerror.h>
Packit db3073
Packit db3073
G_BEGIN_DECLS
Packit db3073
Packit db3073
#define G_SHELL_ERROR g_shell_error_quark ()
Packit db3073
Packit db3073
typedef enum
Packit db3073
{
Packit db3073
  /* mismatched or otherwise mangled quoting */
Packit db3073
  G_SHELL_ERROR_BAD_QUOTING,
Packit db3073
  /* string to be parsed was empty */
Packit db3073
  G_SHELL_ERROR_EMPTY_STRING,
Packit db3073
  G_SHELL_ERROR_FAILED
Packit db3073
} GShellError;
Packit db3073
Packit db3073
GQuark g_shell_error_quark (void);
Packit db3073
Packit db3073
gchar*   g_shell_quote      (const gchar   *unquoted_string);
Packit db3073
gchar*   g_shell_unquote    (const gchar   *quoted_string,
Packit db3073
                             GError       **error);
Packit db3073
gboolean g_shell_parse_argv (const gchar   *command_line,
Packit db3073
                             gint          *argcp,
Packit db3073
                             gchar       ***argvp,
Packit db3073
                             GError       **error);
Packit db3073
Packit db3073
G_END_DECLS
Packit db3073
Packit db3073
#endif /* __G_SHELL_H__ */