summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-19 17:08:51 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-19 17:49:25 +0100
commit4c261da5ba8a7679709bf6c8efefc2598c5f5f51 (patch)
tree026fbf8b9a79c2f961c3287d962c7159d51a4ec7 /src/guestfs-internal.h
parent80d102c49df440c64b744a14bf1d5f46a1c5b82b (diff)
downloadlibguestfs-4c261da5ba8a7679709bf6c8efefc2598c5f5f51.tar.gz
libguestfs-4c261da5ba8a7679709bf6c8efefc2598c5f5f51.tar.xz
libguestfs-4c261da5ba8a7679709bf6c8efefc2598c5f5f51.zip
lib: Split launch.c into separate files.
launch-appliance.c contains the code associated with the 'appliance' attach-method. Mostly. In fact there are a few APIs which don't fit so nicely: - config: deprecated API which fiddles with the qemu command line directly - max-disks: depends on the qemu implementation (virtio-scsi or not) - debug-drives: used for testing only launch-unix.c contains the code associated with 'unix:<path>'. launch.c is the common code for launching, along with a few other APIs such as guestfs_add_drive_opts. This commit also reduces the number of headers to just those which are required.
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 25edfcf6..f9faf7da 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -237,7 +237,7 @@ struct guestfs_h
int ml_debug_calls; /* Extra debug info on each FUSE call. */
#endif
- /* Used by src/launch.c:qemu_supports_virtio_scsi */
+ /* Used by src/launch-appliance.c:qemu_supports_virtio_scsi */
int virtio_scsi;
};
@@ -395,6 +395,8 @@ extern int guestfs___recv_from_daemon (guestfs_h *g, uint32_t *size_rtn, void **
extern int guestfs___accept_from_daemon (guestfs_h *g);
extern void guestfs___progress_message_callback (guestfs_h *g, const struct guestfs_progress *message);
extern int guestfs___build_appliance (guestfs_h *g, char **kernel, char **initrd, char **appliance);
+extern int guestfs___launch_appliance (guestfs_h *g);
+extern int guestfs___launch_unix (guestfs_h *g, const char *sockpath);
extern void guestfs___launch_send_progress (guestfs_h *g, int perdozen);
extern void guestfs___print_BufferIn (FILE *out, const char *buf, size_t buf_size);
extern void guestfs___print_BufferOut (FILE *out, const char *buf, size_t buf_size);