gshell.inc 829 B

12345678910111213141516171819202122232425262728
  1. {*
  2. * gshell.inc
  3. *
  4. * depends on gerror.inc
  5. *}
  6. function G_SHELL_ERROR : TGQuark;
  7. type
  8. PGShellError = ^TGShellError;
  9. TGShellError = (G_SHELL_ERROR_BAD_QUOTING, { mismatched or otherwise mangled quoting }
  10. G_SHELL_ERROR_EMPTY_STRING, { string to be parsed was empty }
  11. G_SHELL_ERROR_FAILED);
  12. function g_shell_error_quark:TGQuark;cdecl;external gliblib name 'g_shell_error_quark';
  13. function g_shell_quote(unquoted_string:Pgchar):Pgchar;cdecl;external gliblib name 'g_shell_quote';
  14. function g_shell_unquote(quoted_string:Pgchar; error:PPGError):Pgchar;cdecl;external gliblib name 'g_shell_unquote';
  15. function g_shell_parse_argv(command_line:Pgchar; argcp:Pgint; argvp:PPPgchar; error:PPGError):gboolean;cdecl;external gliblib name 'g_shell_parse_argv';