summaryrefslogtreecommitdiffstats
path: root/fish/fish.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-08-02 16:33:25 +0100
committerRichard Jones <rjones@redhat.com>2010-08-17 14:09:25 +0100
commit1a9aa565b38eafe48621bc2fe42d35ea6a907708 (patch)
tree5659d990a41951cc511add9b74e4ecb188215770 /fish/fish.h
parent8289aa1ad68ec94c87fc4d538f638d8816052d92 (diff)
downloadlibguestfs-1a9aa565b38eafe48621bc2fe42d35ea6a907708.tar.gz
libguestfs-1a9aa565b38eafe48621bc2fe42d35ea6a907708.tar.xz
libguestfs-1a9aa565b38eafe48621bc2fe42d35ea6a907708.zip
fish: Add -c/--connect and -d/--domain options.
The -d option lets you specify libvirt domains. The disks from these domains are found and added, as if you'd named them with -a. The -c option lets you specify a libvirt URI, which is needed when we consult libvirt to implement the above.
Diffstat (limited to 'fish/fish.h')
-rw-r--r--fish/fish.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h
index da1b087e..bf1f81c6 100644
--- a/fish/fish.h
+++ b/fish/fish.h
@@ -49,9 +49,11 @@
/* in fish.c */
extern guestfs_h *g;
+extern int read_only;
extern int quit;
extern int verbose;
extern int command_num;
+extern const char *libvirt_uri;
extern int issue_command (const char *cmd, char *argv[], const char *pipe);
extern void pod2text (const char *name, const char *shortdesc, const char *body);
extern void list_builtin_commands (void);
@@ -131,6 +133,9 @@ extern int do_time (const char *cmd, int argc, char *argv[]);
/* in tilde.c */
extern char *try_tilde_expansion (char *path);
+/* in virt.c */
+extern int add_libvirt_drives (const char *guest);
+
/* This should just list all the built-in commands so they can
* be added to the generated auto-completion code.
*/