From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52228 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJoNr-0003SF-TE for qemu-devel@nongnu.org; Wed, 02 Jun 2010 09:53:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJoNq-0006D5-KG for qemu-devel@nongnu.org; Wed, 02 Jun 2010 09:53:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57809) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJoNq-0006Cu-AD for qemu-devel@nongnu.org; Wed, 02 Jun 2010 09:53:26 -0400 Date: Wed, 2 Jun 2010 10:53:19 -0300 From: Luiz Capitulino Subject: Re: [Qemu-devel] [PATCH 3/9] QMP: First half of the new argument checking code Message-ID: <20100602105319.54b66398@redhat.com> In-Reply-To: References: <1275424897-32253-1-git-send-email-lcapitulino@redhat.com> <1275424897-32253-4-git-send-email-lcapitulino@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: jan.kiszka@siemens.com, qemu-devel@nongnu.org On Wed, 02 Jun 2010 08:59:11 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: [...] > > + > > + type = qobject_to_qstring(obj); > > + assert(type != NULL); > > + > > + if (qstring_get_str(type)[0] == 'O') { > > + QemuOptsList *opts_list = qemu_find_opts(cmd_arg_name); > > + assert(opts_list); > > + res->result = check_opts(opts_list, res->qdict); > > I doubt this is the right place for calling check_opts. Can you suggest the right place?