1 /* libguestfs - the guestfsd daemon
2 * Copyright (C) 2009 Red Hat Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #define _(str) dgettext(PACKAGE, (str))
27 #define N_(str) dgettext(PACKAGE, (str))
37 extern void pod2text (const char *heading, const char *body);
38 extern void list_builtin_commands (void);
39 extern void display_builtin_command (const char *cmd);
40 extern void free_strings (char **argv);
41 extern void print_strings (char * const * const argv);
42 extern void print_table (char * const * const argv);
43 extern int launch (guestfs_h *);
44 extern int is_true (const char *str);
45 extern char **parse_string_list (const char *str);
47 /* in cmds.c (auto-generated) */
48 extern void list_commands (void);
49 extern void display_command (const char *cmd);
50 extern int run_action (const char *cmd, int argc, char *argv[]);
52 /* in completion.c (auto-generated) */
53 extern char **do_completion (const char *text, int start, int end);
56 extern int do_alloc (const char *cmd, int argc, char *argv[]);
59 extern int do_echo (const char *cmd, int argc, char *argv[]);
62 extern int do_edit (const char *cmd, int argc, char *argv[]);
65 extern int do_lcd (const char *cmd, int argc, char *argv[]);
67 /* This should just list all the built-in commands so they can
68 * be added to the generated auto-completion code.
70 #define BUILTIN_COMMANDS_FOR_COMPLETION \
72 "quit", "exit", "q", \
73 "alloc", "allocate", \
75 "edit", "vi", "emacs" \