From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US1fk-00058e-MC for qemu-devel@nongnu.org; Tue, 16 Apr 2013 04:55:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US1fi-0007of-4V for qemu-devel@nongnu.org; Tue, 16 Apr 2013 04:55:28 -0400 Received: from mail-qa0-f45.google.com ([209.85.216.45]:63892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US1fi-0007oX-0S for qemu-devel@nongnu.org; Tue, 16 Apr 2013 04:55:26 -0400 Received: by mail-qa0-f45.google.com with SMTP id g10so905900qah.4 for ; Tue, 16 Apr 2013 01:55:25 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <516D11E0.3000700@redhat.com> Date: Tue, 16 Apr 2013 10:54:56 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <8738urblx3.fsf@fimbulvetr.bsc.es> <20130416084919.GG6308@stefanha-thinkpad.redhat.com> In-Reply-To: <20130416084919.GG6308@stefanha-thinkpad.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [qapi] Cannot use list of strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Anthony Liguori , Michael Roth , qemu-devel@nongnu.org, Luiz Capitulino , akong@redhat.com, =?ISO-8859-1?Q?Llu=EDs_Vilanova?= 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 >> > with a single field of 'str' type? > akong just hit this too. > > I think it's a question for aliguori, luiz, or mdroth. Laszlo defined and used String for this purpose: ## # @String # # A fat type wrapping 'str', to be embedded in lists. # # Since 1.2 ## { 'type': 'String', 'data': { 'str': 'str' } } Paolo