From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz5Ky-0004Vx-NM for qemu-devel@nongnu.org; Tue, 16 Jul 2013 09:30:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz5Kx-0002O4-Hc for qemu-devel@nongnu.org; Tue, 16 Jul 2013 09:30:40 -0400 Date: Tue, 16 Jul 2013 09:30:22 -0400 From: Luiz Capitulino Message-ID: <20130716093022.267ad5f6@redhat.com> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] ARRAYS :QMP Declaration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Saptarshi Sen Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org On Tue, 16 Jul 2013 09:27:27 +0800 Saptarshi Sen wrote: > Hi, > > Is it possible to use fixed array data structures for use through the > qmp-interface. > > My aim is to monitor IDE level activity in terms of sectors being > accessed. So > I plan to have a fixed size buffer. But I find no way of doing so when I > use the > qapi-schema.json. > > I think the qmp -interface uses linked lists as a replacement for array > type structures. Yes, what JSON calls an array is actually a list. Why can't you use that?