diff options
Diffstat (limited to 'glib/src/shell.hg')
-rw-r--r-- | glib/src/shell.hg | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/glib/src/shell.hg b/glib/src/shell.hg index 6f0e2fce..737b6ade 100644 --- a/glib/src/shell.hg +++ b/glib/src/shell.hg @@ -31,7 +31,7 @@ namespace Glib /** Exception class for shell utility errors. */ -_WRAP_GERROR(ShellError, GShellError, G_SHELL_ERROR, NO_GTYPE) +_WRAP_GERROR(ShellError, GShellError, G_SHELL_ERROR, NO_GTYPE, decl_prefix GLIBMM_API) /** Parses a command line into an argument vector, in much the same way the @@ -46,6 +46,7 @@ _WRAP_GERROR(ShellError, GShellError, G_SHELL_ERROR, NO_GTYPE) * converted to any STL compatible container type). * @throw Glib::ShellError */ +GLIBMM_API Glib::ArrayHandle<std::string> shell_parse_argv(const std::string& command_line); /** Quotes a string so that the shell (/bin/sh) will interpret the quoted @@ -55,6 +56,7 @@ Glib::ArrayHandle<std::string> shell_parse_argv(const std::string& command_line) * @param unquoted_string A literal string. * @return A quoted string. */ +GLIBMM_API std::string shell_quote(const std::string& unquoted_string); /** Unquotes a string as the shell (/bin/sh) would. Only handles quotes; if @@ -80,6 +82,7 @@ std::string shell_quote(const std::string& unquoted_string); * @return An unquoted string. * @throw Glib::ShellError */ +GLIBMM_API std::string shell_unquote(const std::string& quoted_string); /** @} group ShellUtils */ |