diff options
Diffstat (limited to 'migration/socket.h')
-rw-r--r-- | migration/socket.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/migration/socket.h b/migration/socket.h new file mode 100644 index 000000000..891dbccce --- /dev/null +++ b/migration/socket.h @@ -0,0 +1,30 @@ +/* + * QEMU live migration via socket + * + * Copyright Red Hat, Inc. 2009-2016 + * + * Authors: + * Chris Lalancette <clalance@redhat.com> + * Daniel P. Berrange <berrange@redhat.com> + * + * This work is licensed under the terms of the GNU GPL, version 2. See + * the COPYING file in the top-level directory. + * + * Contributions after 2012-01-13 are licensed under the terms of the + * GNU GPL, version 2 or (at your option) any later version. + */ + +#ifndef QEMU_MIGRATION_SOCKET_H +#define QEMU_MIGRATION_SOCKET_H + +#include "io/channel.h" +#include "io/task.h" + +void socket_send_channel_create(QIOTaskFunc f, void *data); +int socket_send_channel_destroy(QIOChannel *send); + +void socket_start_incoming_migration(const char *str, Error **errp); + +void socket_start_outgoing_migration(MigrationState *s, const char *str, + Error **errp); +#endif |