migration: Export socket.c functions in its own file
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
7fcac4a2cc
commit
61e8b14880
@ -163,14 +163,6 @@ void migration_tls_channel_connect(MigrationState *s,
|
|||||||
|
|
||||||
uint64_t migrate_max_downtime(void);
|
uint64_t migrate_max_downtime(void);
|
||||||
|
|
||||||
void tcp_start_incoming_migration(const char *host_port, Error **errp);
|
|
||||||
|
|
||||||
void tcp_start_outgoing_migration(MigrationState *s, const char *host_port, Error **errp);
|
|
||||||
|
|
||||||
void unix_start_incoming_migration(const char *path, Error **errp);
|
|
||||||
|
|
||||||
void unix_start_outgoing_migration(MigrationState *s, const char *path, Error **errp);
|
|
||||||
|
|
||||||
void rdma_start_outgoing_migration(void *opaque, const char *host_port, Error **errp);
|
void rdma_start_outgoing_migration(void *opaque, const char *host_port, Error **errp);
|
||||||
|
|
||||||
void rdma_start_incoming_migration(const char *host_port, Error **errp);
|
void rdma_start_incoming_migration(const char *host_port, Error **errp);
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "migration/blocker.h"
|
#include "migration/blocker.h"
|
||||||
#include "exec.h"
|
#include "exec.h"
|
||||||
#include "fd.h"
|
#include "fd.h"
|
||||||
|
#include "socket.h"
|
||||||
#include "migration/migration.h"
|
#include "migration/migration.h"
|
||||||
#include "savevm.h"
|
#include "savevm.h"
|
||||||
#include "qemu-file-channel.h"
|
#include "qemu-file-channel.h"
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
|
#include "socket.h"
|
||||||
#include "migration/migration.h"
|
#include "migration/migration.h"
|
||||||
#include "qemu-file.h"
|
#include "qemu-file.h"
|
||||||
#include "io/channel-socket.h"
|
#include "io/channel-socket.h"
|
||||||
|
28
migration/socket.h
Normal file
28
migration/socket.h
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
||||||
|
void tcp_start_incoming_migration(const char *host_port, Error **errp);
|
||||||
|
|
||||||
|
void tcp_start_outgoing_migration(MigrationState *s, const char *host_port,
|
||||||
|
Error **errp);
|
||||||
|
|
||||||
|
void unix_start_incoming_migration(const char *path, Error **errp);
|
||||||
|
|
||||||
|
void unix_start_outgoing_migration(MigrationState *s, const char *path,
|
||||||
|
Error **errp);
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user