libxl: gentypes.py: Break out libxl_C_type_do_init
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 29 Oct 2019 15:19:33 +0000 (15:19 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 19 Nov 2019 16:34:15 +0000 (16:34 +0000)
commitf710b76911903ae57505e2a9617c286edb6d6c39
treed503ace097d9d15cb4d6c837fef7638420d65a49
parentdde31350cbeae417903d3a6b3259d21fff34eb8b
libxl: gentypes.py: Break out libxl_C_type_do_init

This is going to be the common way to initialise things.
_libxl_C_type_init remains the thing for generating the body of the
init function, and for some special cases.

No functional change with existing types: C output is identical.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libxl/gentypes.py