Re: [Libguestfs] [PATCH libnbd 3/4] lib: Add set_state / get_state macros.

Eric Blake
2019-06-05T14:51:35Z

On 6/5/19 6:15 AM, Richard W.M. Jones wrote:
> All accesses to the h->state field are redirected through these macros
> (except when we create the handle).
>
> This is simple refactoring.
> ---
>  generator/generator | 18 +++++++++---------
>  lib/connect.c       | 10 +++++-----
>  lib/disconnect.c    |  8 ++++----
>  lib/internal.h      |  3 +++
>  lib/is-state.c      | 12 ++++++------
>  lib/rw.c            |  4 ++--
>  6 files changed, 29 insertions(+), 26 deletions(-)
>
ACK.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org