diff options
author | Juan Quintela <quintela@redhat.com> | 2010-05-11 15:56:35 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2011-10-20 13:23:53 +0200 |
commit | 6e81e7f9734cfe888bae7b870399c1c89f941bb7 (patch) | |
tree | 829f737e1a31962931b61e006aa1eec379329d18 /migration-tcp.c | |
parent | 2d5a672b509416dd03f42cc7ece898287aaa12b5 (diff) | |
download | qemu-6e81e7f9734cfe888bae7b870399c1c89f941bb7.tar.gz qemu-6e81e7f9734cfe888bae7b870399c1c89f941bb7.tar.bz2 qemu-6e81e7f9734cfe888bae7b870399c1c89f941bb7.zip |
migration: Rename FdMigrationState MigrationState
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration-tcp.c')
-rw-r--r-- | migration-tcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/migration-tcp.c b/migration-tcp.c index 5ce93d9864..d6feb237ed 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -28,17 +28,17 @@ do { } while (0) #endif -static int socket_errno(FdMigrationState *s) +static int socket_errno(MigrationState *s) { return socket_error(); } -static int socket_write(FdMigrationState *s, const void * buf, size_t size) +static int socket_write(MigrationState *s, const void * buf, size_t size) { return send(s->fd, buf, size, 0); } -static int tcp_close(FdMigrationState *s) +static int tcp_close(MigrationState *s) { DPRINTF("tcp_close\n"); if (s->fd != -1) { @@ -51,7 +51,7 @@ static int tcp_close(FdMigrationState *s) static void tcp_wait_for_connect(void *opaque) { - FdMigrationState *s = opaque; + MigrationState *s = opaque; int val, ret; socklen_t valsize = sizeof(val); @@ -75,7 +75,7 @@ static void tcp_wait_for_connect(void *opaque) } } -FdMigrationState *tcp_start_outgoing_migration(Monitor *mon, +MigrationState *tcp_start_outgoing_migration(Monitor *mon, const char *host_port, int64_t bandwidth_limit, int detach, @@ -83,7 +83,7 @@ FdMigrationState *tcp_start_outgoing_migration(Monitor *mon, int inc) { struct sockaddr_in addr; - FdMigrationState *s; + MigrationState *s; int ret; if (parse_host_port(&addr, host_port) < 0) |