golang: Update generated files after libxl_types.idl change
PATCH 1/1 golang: Update generated files after libxl_types.idl change
c/s 7efd9f3d45 ("libxl: Handle Linux stubdomain specific QEMU options.") modified libl_types.idl. Run gengotypes.py again to update the geneated golang bindings.
---
CC: Nick Rosbrook <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- tools/golang/xenlight/helpers.gen.go | 10 ++++++++++ tools/golang/xenlight/types.gen.go | 3 +++ 2 files changed, 13 insertions(+)
tools/golang/xenlight/helpers.gen.go +10 -0
@@ -1163,6 +1163,9 @@ func (x *DomainBuildInfo) fromC(xc *C.libxl_domain_build_info) error { if err := x.DeviceModelStubdomain.fromC(&xc.device_model_stubdomain); err != nil { return fmt.Errorf("converting field DeviceModelStubdomain: %v", err) } + x.StubdomainMemkb = uint64(xc.stubdomain_memkb) + x.StubdomainKernel = C.GoString(xc.stubdomain_kernel) + x.StubdomainRamdisk = C.GoString(xc.stubdomain_ramdisk) x.DeviceModel = C.GoString(xc.device_model) x.DeviceModelSsidref = uint32(xc.device_model_ssidref) x.DeviceModelSsidLabel = C.GoString(xc.device_model_ssid_label)
@@ -1489,6 +1492,13 @@ func (x *DomainBuildInfo) toC(xc *C.libxl_domain_build_info) (err error) { if err := x.DeviceModelStubdomain.toC(&xc.device_model_stubdomain); err != nil { return fmt.Errorf("converting field DeviceModelStubdomain: %v", err) } + xc.stubdomain_memkb = C.uint64_t(x.StubdomainMemkb) + if x.StubdomainKernel != "" { + xc.stubdomain_kernel = C.CString(x.StubdomainKernel) + } + if x.StubdomainRamdisk != "" { + xc.stubdomain_ramdisk = C.CString(x.StubdomainRamdisk) + } if x.DeviceModel != "" { xc.device_model = C.CString(x.DeviceModel) }
tools/golang/xenlight/types.gen.go +3 -0
@@ -509,6 +509,9 @@ type DomainBuildInfo struct { MaxMaptrackFrames uint32 DeviceModelVersion DeviceModelVersion DeviceModelStubdomain Defbool + StubdomainMemkb uint64 + StubdomainKernel string + StubdomainRamdisk string DeviceModel string DeviceModelSsidref uint32 DeviceModelSsidLabel string
Signature · 1 line
2.25.1
Quoted 2 lines · George Dunlap
c/s
7efd9f3d45("libxl: Handle Linux stubdomain specific QEMU options.") modified libl_types.idl. Rungengotypes.pyagain to update
libxl_types.idl.
Quoted 2 lines
the geneated golang bindings.
Can we perhaps add a dependency on golang's side such that it can be auto-generated in the future?
In any case
(I haven't looked at the generated code)
Quoted 8 lines · Wei Liu
Quoted 2 lines · George Dunlap
c/s
7efd9f3d45("libxl: Handle Linux stubdomain specific QEMU options.") modified libl_types.idl. Rungengotypes.pyagain to update
Quoted 7 lines
libxl_types.idl.
Quoted 2 lines
the geneated golang bindings.
Can we perhaps add a dependency on golang's side such that it can be auto-generated in the future?
Indeed, I’m trying to think of a good solution to this.
-George