qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 03/33] block: Add BdrvChildRole and BdrvChildRoleBits


From: Eric Blake
Subject: Re: [PATCH v3 03/33] block: Add BdrvChildRole and BdrvChildRoleBits
Date: Tue, 18 Feb 2020 07:05:07 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 2/18/20 6:42 AM, Max Reitz wrote:
This mask will supplement BdrvChildClass when it comes to what role (or
combination of roles) a child takes for its parent.  It consists of
BdrvChildRoleBits values (which is an enum).

Because empty enums are not allowed, let us just start with it filled.

Signed-off-by: Max Reitz <address@hidden>
---
  include/block/block.h | 38 ++++++++++++++++++++++++++++++++++++++
  1 file changed, 38 insertions(+)

+
+/* Mask of BdrvChildRoleBits values */
+typedef unsigned int BdrvChildRole;
+

I like how it turned out (both the additional comments earlier on, and the typedef for documentation purposes).

Reviewed-by: Eric Blake <address@hidden>

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]