Merge tag 'v9.0.0-rc3'
[qemu/ar7.git] / migration / socket.h
blob46c233ecd29e5e4977c978abbaf7ec553a9c8576
1 /*
2 * QEMU live migration via socket
4 * Copyright Red Hat, Inc. 2009-2016
6 * Authors:
7 * Chris Lalancette <clalance@redhat.com>
8 * Daniel P. Berrange <berrange@redhat.com>
10 * This work is licensed under the terms of the GNU GPL, version 2. See
11 * the COPYING file in the top-level directory.
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.
17 #ifndef QEMU_MIGRATION_SOCKET_H
18 #define QEMU_MIGRATION_SOCKET_H
20 #include "io/channel.h"
21 #include "io/task.h"
22 #include "qemu/sockets.h"
24 void socket_send_channel_create(QIOTaskFunc f, void *data);
25 QIOChannel *socket_send_channel_create_sync(Error **errp);
27 void socket_start_incoming_migration(SocketAddress *saddr, Error **errp);
29 void socket_start_outgoing_migration(MigrationState *s,
30 SocketAddress *saddr, Error **errp);
31 void socket_cleanup_outgoing_migration(void);
33 #endif