1namespace("libxl__") 2hidden(True) 3 4libxl_domid = Builtin("domid", namespace="libxl_", json_gen_fn = "yajl_gen_integer", 5 json_parse_fn = "libxl__uint32_parse_json", json_parse_type = "JSON_INTEGER", 6 autogenerate_json = False, copy_fn = None) 7 8libxl__qmp_message_type = Enumeration("qmp_message_type", [ 9 (1, "QMP"), 10 (2, "return"), 11 (3, "error"), 12 (4, "event"), 13 (5, "invalid"), 14 ]) 15 16# Consider adding to QEMU_BACKEND in libxl_internal.h 17libxl__device_kind = Enumeration("device_kind", [ 18 (0, "NONE"), 19 (1, "VIF"), 20 (2, "VBD"), 21 (3, "QDISK"), 22 (4, "PCI"), 23 (5, "VFB"), 24 (6, "VKBD"), 25 (7, "CONSOLE"), 26 (8, "VTPM"), 27 (9, "VUSB"), 28 (10, "QUSB"), 29 (11, "9PFS"), 30 (12, "VDISPL"), 31 (13, "VUART"), 32 (14, "PVCALLS"), 33 (15, "VSND"), 34 (16, "VINPUT"), 35 (17, "VIRTIO_DISK"), 36 (18, "VIRTIO"), 37 (19, "VBD3"), 38 (20, "XEN_9PFS"), 39 ]) 40 41libxl__console_backend = Enumeration("console_backend", [ 42 (1, "XENCONSOLED"), 43 (2, "IOEMU"), 44 ]) 45 46libxl__device_console = Struct("device_console", [ 47 ("backend_domid", libxl_domid), 48 ("devid", integer), 49 ("consback", libxl__console_backend), 50 ("output", string), 51 # A regular console has no name. 52 # A console with a name is called a 'channel', see docs/misc/channels.txt 53 ("name", string), 54 ("connection", string), 55 ("path", string), 56 ]) 57 58libxl__device_action = Enumeration("device_action", [ 59 (1, "ADD"), 60 (2, "REMOVE"), 61 ]) 62 63libxl__qemu_soundhw = Enumeration("qemu_soundhw", [ 64 (1, "ac97"), 65 (2, "adlib"), 66 (3, "cs4231a"), 67 (4, "es1370"), 68 (5, "gus"), 69 (6, "hda"), 70 (7, "sb16"), 71 ]) 72