From: Wei Liu Subject: Re: [PATCH V2 4/4] libxl_types.idl: replace empty Struct with None for libxl_event Date: Mon, 14 Apr 2014 17:54:27 +0100 Message-ID: <20140414165427.GC3635@zion.uk.xensource.com> References: <1397143594-15308-1-git-send-email-wei.liu2@citrix.com> <1397143594-15308-5-git-send-email-wei.liu2@citrix.com> <1397494175.7802.18.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1397494175.7802.18.camel@dagon.hellion.org.uk> 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 Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Apr 14, 2014 at 05:49:35PM +0100, Ian Campbell wrote: > On Thu, 2014-04-10 at 16:26 +0100, Wei Liu wrote: > > Now we generate empty map for None, the empty Struct trick is not > > necessary anymore. > > > > Signed-off-by: Wei Liu > > Acked-by: Ian Campbell > > But you've missed > ("domain_death", Struct(None, [])), > in the same struct. Oops. My fault. > > Arguably this is an API change -- but since the struct was > struct { > } domain_create_console_available; > > I don't think it is material enough to warrant a #define etc. ---8<--- >From 2cfa7a3623847a431c0bf662a19e9eb2d9c79254 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 10 Apr 2014 16:20:22 +0100 Subject: [PATCH] libxl_types.idl: replace empty Struct with None for libxl_event Now we generate empty map for None, the empty Struct trick is not necessary anymore. Signed-off-by: Wei Liu --- tools/libxl/libxl_types.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 612645c..0f7bbf8 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -588,7 +588,7 @@ libxl_event = Struct("event",[ [("domain_shutdown", Struct(None, [ ("shutdown_reason", uint8), ])), - ("domain_death", Struct(None, [])), + ("domain_death", None), ("disk_eject", Struct(None, [ ("vdev", string), ("disk", libxl_device_disk), @@ -596,5 +596,5 @@ libxl_event = Struct("event",[ ("operation_complete", Struct(None, [ ("rc", integer), ])), - ("domain_create_console_available", Struct(None, [])), + ("domain_create_console_available", None), ]))]) -- 1.7.10.4