Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-17 Thread Amos Kong
On Tue, Apr 16, 2013 at 09:50:17AM -0500, mdroth wrote: > On Tue, Apr 16, 2013 at 10:49:19AM +0200, Stefan Hajnoczi wrote: > > On Mon, Apr 15, 2013 at 10:04:24PM +0200, Lluís Vilanova wrote: > > > Tried using a list of strings as an argument to a command, but the > > > generated > > > code referen

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread mdroth
On Tue, Apr 16, 2013 at 10:49:19AM +0200, Stefan Hajnoczi wrote: > On Mon, Apr 15, 2013 at 10:04:24PM +0200, Lluís Vilanova wrote: > > Tried using a list of strings as an argument to a command, but the generated > > code references the 'strList' type, which does not exist. > > > > Is a specialized

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread Eric Blake
On 04/16/2013 04:13 AM, Amos Kong wrote: > Eric said String list contains additional JSON structure. > At least, it works. Using the fat 'String' wrapper works, but requires more effort to decode. > > = using StringList > '*unicast':['String'], > '*multicast':

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread Lluís Vilanova
Paolo Bonzini writes: > Il 16/04/2013 10:49, Stefan Hajnoczi ha scritto: >>> > Tried using a list of strings as an argument to a command, but the >>> > generated >>> > code references the 'strList' type, which does not exist. >>> > >>> > Is a specialized version for "['str']" missing, or should

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread Amos Kong
On Tue, Apr 16, 2013 at 10:54:56AM +0200, Paolo Bonzini wrote: > Il 16/04/2013 10:49, Stefan Hajnoczi ha scritto: > >> > Tried using a list of strings as an argument to a command, but the > >> > generated > >> > code references the 'strList' type, which does not exist. > >> > > >> > Is a speciali

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread Paolo Bonzini
Il 16/04/2013 10:49, Stefan Hajnoczi ha scritto: >> > Tried using a list of strings as an argument to a command, but the >> > generated >> > code references the 'strList' type, which does not exist. >> > >> > Is a specialized version for "['str']" missing, or should I define my own >> > type >>

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread Stefan Hajnoczi
On Mon, Apr 15, 2013 at 10:04:24PM +0200, Lluís Vilanova wrote: > Tried using a list of strings as an argument to a command, but the generated > code references the 'strList' type, which does not exist. > > Is a specialized version for "['str']" missing, or should I define my own type > with a sin

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-15 Thread Lluís Vilanova
Lluís Vilanova writes: > Tried using a list of strings as an argument to a command, but the generated > code references the 'strList' type, which does not exist. > Is a specialized version for "['str']" missing, or should I define my own type > with a single field of 'str' type? I could also not

[Qemu-devel] [qapi] Cannot use list of strings

2013-04-15 Thread Lluís Vilanova
Tried using a list of strings as an argument to a command, but the generated code references the 'strList' type, which does not exist. Is a specialized version for "['str']" missing, or should I define my own type with a single field of 'str' type? Thanks, Lluis -- "And it's much the same t