block: Make 'replication_state' an enum
commit3c76c606dab4d2298a9877628fe28bf9e6d99e22
authorFam Zheng <famz@redhat.com>
Fri, 17 Mar 2017 02:17:39 +0000 (17 10:17 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 7 May 2017 06:57:51 +0000 (7 09:57 +0300)
treebee66eb917e71b414903742e24ecb3871deaeb20
parentec45bbe5f1921c6553fbf9c0c76b358b0403c22d
block: Make 'replication_state' an enum

BDRVReplicationState.replication_state is a name with a bit of
duplication, plus it could be an enum like BDRVReplicationState.mode,
which is more readable and also more straightforward in a debugger.

Rename it, and improve the type while at it.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/replication.c