From: Ian Jackson Subject: Re: [PATCH v2-resend 04/30] libxl: idl: complete some enums in the IDL with their defaults Date: Tue, 27 Aug 2013 15:56:15 +0100 Message-ID: <21020.48655.713430.351144@mariner.uk.xensource.com> References: <1377168678-25492-1-git-send-email-rob.hoes@citrix.com> <1377168678-25492-5-git-send-email-rob.hoes@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1377168678-25492-5-git-send-email-rob.hoes@citrix.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: Rob Hoes Cc: ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Rob Hoes writes ("[Xen-devel] [PATCH v2-resend 04/30] libxl: idl: complete some enums in the IDL with their defaults"): > There are several enums in the IDL that are initialised to 0, while > the value 0 is not part of the enum itself. This creates problems for > language bindings generated from the IDL, such as the OCaml ones. > > Added an explicit (0, "UNKNOWN") enum value where appropriate, or used > init_val to default to a sensible value. Acked-by: Ian Jackson (I haven't double checked each of these changes against the context, but the principle is sound.) Ian.