00001 /* -*- mode: C; c-file-style: "gnu" -*- */ 00002 /* dbus-shell.h Shell command line utility functions. 00003 * 00004 * Copyright (C) 2002, 2003 Red Hat, Inc. 00005 * Copyright (C) 2003 CodeFactory AB 00006 * 00007 * Licensed under the Academic Free License version 2.1 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 * 00023 */ 00024 00025 00026 #ifndef DBUS_SHELL_H 00027 #define DBUS_SHELL_H 00028 00029 DBUS_BEGIN_DECLS 00030 00031 char* _dbus_shell_quote (const char *unquoted_string); 00032 char* _dbus_shell_unquote (const char *quoted_string); 00033 dbus_bool_t _dbus_shell_parse_argv (const char *command_line, 00034 int *argcp, 00035 char ***argvp, 00036 DBusError *error); 00037 00038 DBUS_END_DECLS 00039 00040 #endif /* DBUS_SHELL_H */ 00041 00042