blob: 528c3b020270c38d2fb272c1e5d2f1a878b5fd96 [file] [log] [blame]
Juan Quintela61e8b142017-04-05 17:40:11 +02001/*
2 * QEMU live migration via socket
3 *
4 * Copyright Red Hat, Inc. 2009-2016
5 *
6 * Authors:
7 * Chris Lalancette <clalance@redhat.com>
8 * Daniel P. Berrange <berrange@redhat.com>
9 *
10 * This work is licensed under the terms of the GNU GPL, version 2. See
11 * the COPYING file in the top-level directory.
12 *
13 * Contributions after 2012-01-13 are licensed under the terms of the
14 * GNU GPL, version 2 or (at your option) any later version.
15 */
16
17#ifndef QEMU_MIGRATION_SOCKET_H
18#define QEMU_MIGRATION_SOCKET_H
Juan Quintela38549562018-02-28 12:05:15 +010019
20#include "io/channel.h"
21#include "io/task.h"
22
23void socket_send_channel_create(QIOTaskFunc f, void *data);
24int socket_send_channel_destroy(QIOChannel *send);
25
Juan Quintela61e8b142017-04-05 17:40:11 +020026void tcp_start_incoming_migration(const char *host_port, Error **errp);
27
28void tcp_start_outgoing_migration(MigrationState *s, const char *host_port,
29 Error **errp);
30
31void unix_start_incoming_migration(const char *path, Error **errp);
32
33void unix_start_outgoing_migration(MigrationState *s, const char *path,
34 Error **errp);
35#endif