From: Ian Campbell Subject: Re: [PATCH 2 of 2] RFC: libxl: move definition of libxl_domain_config into the IDL Date: Wed, 25 Apr 2012 09:11:27 +0100 Message-ID: <1335341487.4881.17.camel@dagon.hellion.org.uk> References: <20374.59769.738590.656156@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20374.59769.738590.656156@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Dario Faggioli , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2012-04-24 at 18:57 +0100, Ian Jackson wrote: > Ian Campbell writes ("[Xen-devel] [PATCH 2 of 2] RFC: libxl: move definition of libxl_domain_config into the IDL"): > > RFC: libxl: move definition of libxl_domain_config into the IDL > > > > This requires adding a new Array type to the IDL. > > > > DO NOT APPLY. This is 4.3 material. > > > > Signed-off-by: Ian Campbell > > Acked-by: Ian Jackson > > > + idl.Array.len_var contains an idl.Field which is added to the parent > > + idl.Aggregate and will contain the length of the array. > > Why does the Array not automatically invent a "num_" field ? > Surely there is no benefit to having non-systematically named (or > typed) array count fields ? That would be good but currently the Array type doesn't see the name of the member in the containing struct: Struct("thing", [ ("disks", Array(libxl_device_disk, "num_disks")), ]) We have a similar problem with the KeyedUnion which similarly ought to be able to at least default keyvar_name to something. Ian.