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 | 22f00a4445fac68b10d1cb669836eeb8d32af56d (patch) | |
tree | 829f737e1a31962931b61e006aa1eec379329d18 /migration-tcp.c | |
parent | 3f77fc557e3e1cb8aab72ca0ca91aac67d478118 (diff) | |
download | qemu-22f00a4445fac68b10d1cb669836eeb8d32af56d.zip qemu-22f00a4445fac68b10d1cb669836eeb8d32af56d.tar.gz qemu-22f00a4445fac68b10d1cb669836eeb8d32af56d.tar.bz2 |
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 5ce93d9..d6feb23 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) |