X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Ffish.h;h=0dd1fc2e58e4ca084a53e2b01e5ac14ee8e5fa40;hb=71322ebf4ee7dfb53db344aaedd70518a3c7a552;hp=e45f034505e1e355c6bae41ffd24d33d7d157e5d;hpb=612a358b8935381e5b8d706e4a77689cd316a18d;p=libguestfs.git diff --git a/fish/fish.h b/fish/fish.h index e45f034..0dd1fc2 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -21,9 +21,17 @@ #include +#ifdef HAVE_GETTEXT +#include "gettext.h" +#define _(str) dgettext(PACKAGE, (str)) +#define N_(str) dgettext(PACKAGE, (str)) +#else +#define _(str) str +#define N_(str) str +#endif + /* in fish.c */ extern guestfs_h *g; -extern int g_launched; extern int quit; extern int verbose; extern void pod2text (const char *heading, const char *body); @@ -45,6 +53,26 @@ extern int run_action (const char *cmd, int argc, char *argv[]); extern char **do_completion (const char *text, int start, int end); /* in alloc.c */ -extern int do_alloc (int argc, char *argv[]); +extern int do_alloc (const char *cmd, int argc, char *argv[]); + +/* in echo.c */ +extern int do_echo (const char *cmd, int argc, char *argv[]); + +/* in edit.c */ +extern int do_edit (const char *cmd, int argc, char *argv[]); + +/* in lcd.c */ +extern int do_lcd (const char *cmd, int argc, char *argv[]); + +/* This should just list all the built-in commands so they can + * be added to the generated auto-completion code. + */ +#define BUILTIN_COMMANDS_FOR_COMPLETION \ + "help", \ + "quit", "exit", "q", \ + "alloc", "allocate", \ + "echo", \ + "edit", "vi", "emacs" \ + "lcd" #endif /* FISH_H */