Skip to content

Commit f4dbe1b

Browse files
author
Juan Quintela
committed
migration: Export exec.c functions in its own file
Signed-off-by: Juan Quintela <[email protected]> Reviewed-by: Dr. David Alan Gilbert <[email protected]>
1 parent 08a0aee commit f4dbe1b

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

include/migration/migration.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ void migration_tls_channel_connect(MigrationState *s,
163163

164164
uint64_t migrate_max_downtime(void);
165165

166-
void exec_start_incoming_migration(const char *host_port, Error **errp);
167-
168-
void exec_start_outgoing_migration(MigrationState *s, const char *host_port, Error **errp);
169-
170166
void tcp_start_incoming_migration(const char *host_port, Error **errp);
171167

172168
void tcp_start_outgoing_migration(MigrationState *s, const char *host_port, Error **errp);

migration/exec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "qapi/error.h"
2222
#include "qemu-common.h"
2323
#include "channel.h"
24+
#include "exec.h"
2425
#include "migration/migration.h"
2526
#include "io/channel-command.h"
2627
#include "trace.h"

migration/exec.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* QEMU live migration
3+
*
4+
* Copyright IBM, Corp. 2008
5+
* Copyright Dell MessageOne 2008
6+
* Copyright Red Hat, Inc. 2015-2016
7+
*
8+
* Authors:
9+
* Anthony Liguori <[email protected]>
10+
* Charles Duffy <[email protected]>
11+
* Daniel P. Berrange <[email protected]>
12+
*
13+
* This work is licensed under the terms of the GNU GPL, version 2. See
14+
* the COPYING file in the top-level directory.
15+
*
16+
* Contributions after 2012-01-13 are licensed under the terms of the
17+
* GNU GPL, version 2 or (at your option) any later version.
18+
*/
19+
20+
#ifndef QEMU_MIGRATION_EXEC_H
21+
#define QEMU_MIGRATION_EXEC_H
22+
void exec_start_incoming_migration(const char *host_port, Error **errp);
23+
24+
void exec_start_outgoing_migration(MigrationState *s, const char *host_port,
25+
Error **errp);
26+
#endif

migration/migration.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "qemu/error-report.h"
1919
#include "qemu/main-loop.h"
2020
#include "migration/blocker.h"
21+
#include "exec.h"
2122
#include "migration/migration.h"
2223
#include "savevm.h"
2324
#include "qemu-file-channel.h"

0 commit comments

Comments
 (0)