diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-08-19 15:21:01 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-08-19 15:21:01 +0100 |
commit | 5ccd288712f8a5d1a65f8231e517ece0bd225468 (patch) | |
tree | 6aed56772969780e976d50adc27d665f8791e07f | |
parent | bcbf6e2049191fb218ff288106d0744430011dc9 (diff) | |
download | xen-5ccd288712f8a5d1a65f8231e517ece0bd225468.tar.gz xen-5ccd288712f8a5d1a65f8231e517ece0bd225468.tar.bz2 xen-5ccd288712f8a5d1a65f8231e517ece0bd225468.zip |
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>
-rw-r--r-- | tools/libxl/libxl.idl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl.idl b/tools/libxl/libxl.idl index ea425de6b3..e3cca5a8de 100644 --- a/tools/libxl/libxl.idl +++ b/tools/libxl/libxl.idl @@ -195,7 +195,7 @@ libxl_device_console = Struct("device_console", [ ("domid", domid), ("devid", integer), ("consback", libxl_console_consback), - ("build_state", Reference(libxl_domain_build_state)), + ("build_state", Reference(libxl_domain_build_state), True), ("output", string), ]) |