Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gshell.h
Go to the documentation of this file.
1/* gshell.h - Shell-related utilities
2 *
3 * Copyright 2000 Red Hat, Inc.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __G_SHELL_H__
22#define __G_SHELL_H__
23
24#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
25#error "Only <glib.h> can be included directly."
26#endif
27
28#include <glib/gerror.h>
29
31
32#define G_SHELL_ERROR g_shell_error_quark ()
33
34typedef enum
35{
36 /* mismatched or otherwise mangled quoting */
38 /* string to be parsed was empty */
42
45
47gchar* g_shell_quote (const gchar *unquoted_string);
49gchar* g_shell_unquote (const gchar *quoted_string,
50 GError **error);
52gboolean g_shell_parse_argv (const gchar *command_line,
53 gint *argcp,
54 gchar ***argvp,
55 GError **error);
56
58
59#endif /* __G_SHELL_H__ */
#define GLIB_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
G_BEGIN_DECLS typedef guint32 GQuark
Definition gquark.h:38
GShellError
Definition gshell.h:35
@ G_SHELL_ERROR_BAD_QUOTING
Definition gshell.h:37
@ G_SHELL_ERROR_FAILED
Definition gshell.h:40
@ G_SHELL_ERROR_EMPTY_STRING
Definition gshell.h:39
GLIB_AVAILABLE_IN_ALL gchar * g_shell_unquote(const gchar *quoted_string, GError **error)
GLIB_AVAILABLE_IN_ALL gboolean g_shell_parse_argv(const gchar *command_line, gint *argcp, gchar ***argvp, GError **error)
GLIB_AVAILABLE_IN_ALL GQuark g_shell_error_quark(void)
GLIB_AVAILABLE_IN_ALL gchar * g_shell_quote(const gchar *unquoted_string)
gint gboolean
Definition gtypes.h:56
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
int gint
Definition gtypes.h:55
static void error(LoadState *S, const char *why)