debuggers.hg

changeset 22079:d2f576d5cff5

libxl: libxl_device_console.build_state is const

This field always refers to a libxl_domain_build_state structure which
is managed already by the caller, therefore it is incorrect to free it
as part of libxl_device_console_destroy.

(arguably this field should be a copy of, not a reference too, the original)

[PATCH 06 of 16 of
libxl: autogenerate type definitions and destructor functions]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Thu Aug 19 15:21:01 2010 +0100 (2010-08-19)
parents fa82b0540e8c
children 24f6507f0156
files tools/libxl/libxl.idl
line diff
     1.1 --- a/tools/libxl/libxl.idl	Thu Aug 19 15:20:22 2010 +0100
     1.2 +++ b/tools/libxl/libxl.idl	Thu Aug 19 15:21:01 2010 +0100
     1.3 @@ -195,7 +195,7 @@ libxl_device_console = Struct("device_co
     1.4      ("domid", domid),
     1.5      ("devid", integer),
     1.6      ("consback", libxl_console_consback),
     1.7 -    ("build_state", Reference(libxl_domain_build_state)),
     1.8 +    ("build_state", Reference(libxl_domain_build_state), True),
     1.9      ("output", string),
    1.10      ])
    1.11