[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RESEND PATCH 1/2] qapi: introduce strList and visit_ty
From: |
Amos Kong |
Subject: |
Re: [Qemu-devel] [RESEND PATCH 1/2] qapi: introduce strList and visit_type_strList() |
Date: |
Wed, 24 Apr 2013 23:59:47 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Apr 24, 2013 at 08:01:50AM -0600, Eric Blake wrote:
> On 04/24/2013 06:47 AM, Amos Kong wrote:
> > Currently we can only use ['String'] to add string to a list,
> > it contains some additional JSON structure.
> > "multicast": [
> > {
> > "str": "01:80:c2:00:00:21"
> > },
> > {
> > "str": "00:00:00:00:00:00"
> > }
> > ]
> >
> > This patch introdued strList, we can use ['str']
> >
> > "multicast": [
> > "01:00:5e:00:00:01",
> > "33:33:ff:12:34:57"
> > ]
> >
> > Signed-off-by: Amos Kong <address@hidden>
> > ---
> > I used an _ugly_ "#ifndef" to limit it only be defined in qapi-types.h.
> > do you have some suggestion to fix it?
>
> I'm not the maintainer, so you may still want to wait for a better
> suggestion. But since I personally don't mind the #ifdef if that's what
> it takes to get this to compile, and since I'd like to see the feature
> added, I'm fine giving:
I will send a v2 to solve this issue.
> Reviewed-by: Eric Blake <address@hidden>
>
> That said, I think the API in patch 2/2 is not quite right; and when you
> fix things there, you may not need this patch in the 1.5 timeframe...
I already saw your comment, will split those two patches.
Thanks
--
Amos.
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, (continued)
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, Amos Kong, 2013/04/24
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, Luiz Capitulino, 2013/04/24
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, Eric Blake, 2013/04/24
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, Amos Kong, 2013/04/24
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, Luiz Capitulino, 2013/04/24
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, Eric Blake, 2013/04/24
- Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema command, Osier Yang, 2013/04/24
Re: [Qemu-devel] [RESEND PATCH 1/2] qapi: introduce strList and visit_type_strList(), Eric Blake, 2013/04/24
- Re: [Qemu-devel] [RESEND PATCH 1/2] qapi: introduce strList and visit_type_strList(),
Amos Kong <=
Re: [Qemu-devel] [RESEND PATCH 1/2] qapi: introduce strList and visit_type_strList(), Eric Blake, 2013/04/24