From 0ab7bb4b18908813b484514b8d2f597d962dd3c7 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Sat, 30 Jan 2010 22:15:35 -0500 Subject: [PATCH] GShell: move docs from tmpl to .c --- docs/reference/glib/tmpl/.gitignore | 1 + docs/reference/glib/tmpl/shell.sgml | 68 ------------------------------------- glib/gshell.c | 22 ++++++++++++ 3 files changed, 23 insertions(+), 68 deletions(-) delete mode 100644 docs/reference/glib/tmpl/shell.sgml diff --git a/docs/reference/glib/tmpl/.gitignore b/docs/reference/glib/tmpl/.gitignore index 1edcd06..fd5ae42 100644 --- a/docs/reference/glib/tmpl/.gitignore +++ b/docs/reference/glib/tmpl/.gitignore @@ -5,5 +5,6 @@ gvarianttype.sgml hash_tables.sgml option.sgml random_numbers.sgml +shell.sgml threads.sgml timers.sgml diff --git a/docs/reference/glib/tmpl/shell.sgml b/docs/reference/glib/tmpl/shell.sgml deleted file mode 100644 index a1c7979..0000000 --- a/docs/reference/glib/tmpl/shell.sgml +++ /dev/null @@ -1,68 +0,0 @@ - -Shell-related Utilities - - -shell-like commandline handling - - - - - - - - - - - - - - - - -Error codes returned by shell functions. - - -@G_SHELL_ERROR_BAD_QUOTING: Mismatched or otherwise mangled quoting. -@G_SHELL_ERROR_EMPTY_STRING: String to be parsed was empty. -@G_SHELL_ERROR_FAILED: Some other error. - - - -Error domain for shell functions. Errors in this domain will -be from the #GShellError enumeration. See #GError for information on -error domains. - - - - - - - - - -@command_line: -@argcp: -@argvp: -@error: -@Returns: - - - - - - - -@unquoted_string: -@Returns: - - - - - - - -@quoted_string: -@error: -@Returns: - - diff --git a/glib/gshell.c b/glib/gshell.c index 711cdee..d3b76f4 100644 --- a/glib/gshell.c +++ b/glib/gshell.c @@ -33,6 +33,28 @@ #include "glibintl.h" #include "galias.h" +/** + * SECTION: shell + * @title: Shell-related Utilities + * @short_description: shell-like commandline handling + **/ + +/** + * G_SHELL_ERROR: + * + * Error domain for shell functions. Errors in this domain will be from + * the #GShellError enumeration. See #GError for information on error + * domains. + **/ + +/** + * GShellError: + * @G_SHELL_ERROR_BAD_QUOTING: Mismatched or otherwise mangled quoting. + * @G_SHELL_ERROR_EMPTY_STRING: String to be parsed was empty. + * @G_SHELL_ERROR_FAILED: Some other error. + * + * Error codes returned by shell functions. + **/ GQuark g_shell_error_quark (void) { -- 2.7.4