summaryrefslogtreecommitdiffstats
path: root/fish/fish.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-09-08 09:05:18 +0100
committerRichard Jones <rjones@redhat.com>2010-09-08 09:59:29 +0100
commit60cdd02b02578b427ca3926d566811c6bb7a9970 (patch)
tree245cca9267214906566eba1baa8b360ee8b9b07d /fish/fish.h
parent06c906168c0a96662ad47473cfe5f2fb3c316757 (diff)
downloadlibguestfs-60cdd02b02578b427ca3926d566811c6bb7a9970.tar.gz
libguestfs-60cdd02b02578b427ca3926d566811c6bb7a9970.tar.xz
libguestfs-60cdd02b02578b427ca3926d566811c6bb7a9970.zip
fish: Generate list of prepared disk image types.
This commit shouldn't change the semantics of the code.
Diffstat (limited to 'fish/fish.h')
-rw-r--r--fish/fish.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h
index be357f5d..7c9c9555 100644
--- a/fish/fish.h
+++ b/fish/fish.h
@@ -116,12 +116,18 @@ extern int do_man (const char *cmd, int argc, char *argv[]);
extern int do_more (const char *cmd, int argc, char *argv[]);
/* in prep.c */
+struct prep_data {
+ const struct prep *prep;
+ const char *orig_type_string;
+ const char **params;
+};
typedef struct prep_data prep_data;
extern void list_prepared_drives (void);
extern prep_data *create_prepared_file (const char *type_string,
const char *filename);
extern void prepare_drive (const char *filename, prep_data *data,
const char *device);
+extern void prep_error (prep_data *data, const char *filename, const char *fs, ...) __attribute__((noreturn, format (printf,3,4)));
/* in progress.c */
extern void reset_progress_bar (void);