/usr/include/_libxl_types.h is in libxen-dev 4.4.1-9+deb8u10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 | #ifndef __LIBXL_TYPES_H
#define __LIBXL_TYPES_H
/*
* DO NOT EDIT.
*
* This file is autogenerated by
* "gentypes.py libxl_types.idl __libxl_types.h __libxl_types_json.h __libxl_types.c"
*/
typedef enum libxl_error {
ERROR_NONSPECIFIC = -1,
ERROR_VERSION = -2,
ERROR_FAIL = -3,
ERROR_NI = -4,
ERROR_NOMEM = -5,
ERROR_INVAL = -6,
ERROR_BADFAIL = -7,
ERROR_GUEST_TIMEDOUT = -8,
ERROR_TIMEDOUT = -9,
ERROR_NOPARAVIRT = -10,
ERROR_NOT_READY = -11,
ERROR_OSEVENT_REG_FAIL = -12,
ERROR_BUFFERFULL = -13,
ERROR_UNKNOWN_CHILD = -14,
} libxl_error;
char *libxl_error_to_json(libxl_ctx *ctx, libxl_error p);
const char *libxl_error_to_string(libxl_error p);
int libxl_error_from_string(const char *s, libxl_error *e);
extern libxl_enum_string_table libxl_error_string_table[];
typedef enum libxl_domain_type {
LIBXL_DOMAIN_TYPE_INVALID = -1,
LIBXL_DOMAIN_TYPE_HVM = 1,
LIBXL_DOMAIN_TYPE_PV = 2,
} libxl_domain_type;
char *libxl_domain_type_to_json(libxl_ctx *ctx, libxl_domain_type p);
const char *libxl_domain_type_to_string(libxl_domain_type p);
int libxl_domain_type_from_string(const char *s, libxl_domain_type *e);
extern libxl_enum_string_table libxl_domain_type_string_table[];
typedef enum libxl_device_model_version {
LIBXL_DEVICE_MODEL_VERSION_UNKNOWN = 0,
LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL = 1,
LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN = 2,
} libxl_device_model_version;
char *libxl_device_model_version_to_json(libxl_ctx *ctx, libxl_device_model_version p);
const char *libxl_device_model_version_to_string(libxl_device_model_version p);
int libxl_device_model_version_from_string(const char *s, libxl_device_model_version *e);
extern libxl_enum_string_table libxl_device_model_version_string_table[];
typedef enum libxl_console_type {
LIBXL_CONSOLE_TYPE_UNKNOWN = 0,
LIBXL_CONSOLE_TYPE_SERIAL = 1,
LIBXL_CONSOLE_TYPE_PV = 2,
} libxl_console_type;
char *libxl_console_type_to_json(libxl_ctx *ctx, libxl_console_type p);
const char *libxl_console_type_to_string(libxl_console_type p);
int libxl_console_type_from_string(const char *s, libxl_console_type *e);
extern libxl_enum_string_table libxl_console_type_string_table[];
typedef enum libxl_disk_format {
LIBXL_DISK_FORMAT_UNKNOWN = 0,
LIBXL_DISK_FORMAT_QCOW = 1,
LIBXL_DISK_FORMAT_QCOW2 = 2,
LIBXL_DISK_FORMAT_VHD = 3,
LIBXL_DISK_FORMAT_RAW = 4,
LIBXL_DISK_FORMAT_EMPTY = 5,
} libxl_disk_format;
char *libxl_disk_format_to_json(libxl_ctx *ctx, libxl_disk_format p);
const char *libxl_disk_format_to_string(libxl_disk_format p);
int libxl_disk_format_from_string(const char *s, libxl_disk_format *e);
extern libxl_enum_string_table libxl_disk_format_string_table[];
typedef enum libxl_disk_backend {
LIBXL_DISK_BACKEND_UNKNOWN = 0,
LIBXL_DISK_BACKEND_PHY = 1,
LIBXL_DISK_BACKEND_TAP = 2,
LIBXL_DISK_BACKEND_QDISK = 3,
} libxl_disk_backend;
char *libxl_disk_backend_to_json(libxl_ctx *ctx, libxl_disk_backend p);
const char *libxl_disk_backend_to_string(libxl_disk_backend p);
int libxl_disk_backend_from_string(const char *s, libxl_disk_backend *e);
extern libxl_enum_string_table libxl_disk_backend_string_table[];
typedef enum libxl_nic_type {
LIBXL_NIC_TYPE_UNKNOWN = 0,
LIBXL_NIC_TYPE_VIF_IOEMU = 1,
LIBXL_NIC_TYPE_VIF = 2,
} libxl_nic_type;
char *libxl_nic_type_to_json(libxl_ctx *ctx, libxl_nic_type p);
const char *libxl_nic_type_to_string(libxl_nic_type p);
int libxl_nic_type_from_string(const char *s, libxl_nic_type *e);
extern libxl_enum_string_table libxl_nic_type_string_table[];
typedef enum libxl_action_on_shutdown {
LIBXL_ACTION_ON_SHUTDOWN_DESTROY = 1,
LIBXL_ACTION_ON_SHUTDOWN_RESTART = 2,
LIBXL_ACTION_ON_SHUTDOWN_RESTART_RENAME = 3,
LIBXL_ACTION_ON_SHUTDOWN_PRESERVE = 4,
LIBXL_ACTION_ON_SHUTDOWN_COREDUMP_DESTROY = 5,
LIBXL_ACTION_ON_SHUTDOWN_COREDUMP_RESTART = 6,
} libxl_action_on_shutdown;
char *libxl_action_on_shutdown_to_json(libxl_ctx *ctx, libxl_action_on_shutdown p);
const char *libxl_action_on_shutdown_to_string(libxl_action_on_shutdown p);
int libxl_action_on_shutdown_from_string(const char *s, libxl_action_on_shutdown *e);
extern libxl_enum_string_table libxl_action_on_shutdown_string_table[];
typedef enum libxl_trigger {
LIBXL_TRIGGER_UNKNOWN = 0,
LIBXL_TRIGGER_POWER = 1,
LIBXL_TRIGGER_SLEEP = 2,
LIBXL_TRIGGER_NMI = 3,
LIBXL_TRIGGER_INIT = 4,
LIBXL_TRIGGER_RESET = 5,
LIBXL_TRIGGER_S3RESUME = 6,
} libxl_trigger;
char *libxl_trigger_to_json(libxl_ctx *ctx, libxl_trigger p);
const char *libxl_trigger_to_string(libxl_trigger p);
int libxl_trigger_from_string(const char *s, libxl_trigger *e);
extern libxl_enum_string_table libxl_trigger_string_table[];
typedef enum libxl_tsc_mode {
LIBXL_TSC_MODE_DEFAULT = 0,
LIBXL_TSC_MODE_ALWAYS_EMULATE = 1,
LIBXL_TSC_MODE_NATIVE = 2,
LIBXL_TSC_MODE_NATIVE_PARAVIRT = 3,
} libxl_tsc_mode;
char *libxl_tsc_mode_to_json(libxl_ctx *ctx, libxl_tsc_mode p);
const char *libxl_tsc_mode_to_string(libxl_tsc_mode p);
int libxl_tsc_mode_from_string(const char *s, libxl_tsc_mode *e);
extern libxl_enum_string_table libxl_tsc_mode_string_table[];
typedef enum libxl_timer_mode {
LIBXL_TIMER_MODE_UNKNOWN = -1,
LIBXL_TIMER_MODE_DELAY_FOR_MISSED_TICKS = 0,
LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS = 1,
LIBXL_TIMER_MODE_NO_MISSED_TICKS_PENDING = 2,
LIBXL_TIMER_MODE_ONE_MISSED_TICK_PENDING = 3,
} libxl_timer_mode;
char *libxl_timer_mode_to_json(libxl_ctx *ctx, libxl_timer_mode p);
const char *libxl_timer_mode_to_string(libxl_timer_mode p);
int libxl_timer_mode_from_string(const char *s, libxl_timer_mode *e);
extern libxl_enum_string_table libxl_timer_mode_string_table[];
typedef enum libxl_bios_type {
LIBXL_BIOS_TYPE_UNKNOWN = 0,
LIBXL_BIOS_TYPE_ROMBIOS = 1,
LIBXL_BIOS_TYPE_SEABIOS = 2,
LIBXL_BIOS_TYPE_OVMF = 3,
} libxl_bios_type;
char *libxl_bios_type_to_json(libxl_ctx *ctx, libxl_bios_type p);
const char *libxl_bios_type_to_string(libxl_bios_type p);
int libxl_bios_type_from_string(const char *s, libxl_bios_type *e);
extern libxl_enum_string_table libxl_bios_type_string_table[];
typedef enum libxl_scheduler {
LIBXL_SCHEDULER_UNKNOWN = 0,
LIBXL_SCHEDULER_SEDF = 4,
LIBXL_SCHEDULER_CREDIT = 5,
LIBXL_SCHEDULER_CREDIT2 = 6,
LIBXL_SCHEDULER_ARINC653 = 7,
} libxl_scheduler;
char *libxl_scheduler_to_json(libxl_ctx *ctx, libxl_scheduler p);
const char *libxl_scheduler_to_string(libxl_scheduler p);
int libxl_scheduler_from_string(const char *s, libxl_scheduler *e);
extern libxl_enum_string_table libxl_scheduler_string_table[];
typedef enum libxl_shutdown_reason {
LIBXL_SHUTDOWN_REASON_UNKNOWN = -1,
LIBXL_SHUTDOWN_REASON_POWEROFF = 0,
LIBXL_SHUTDOWN_REASON_REBOOT = 1,
LIBXL_SHUTDOWN_REASON_SUSPEND = 2,
LIBXL_SHUTDOWN_REASON_CRASH = 3,
LIBXL_SHUTDOWN_REASON_WATCHDOG = 4,
} libxl_shutdown_reason;
char *libxl_shutdown_reason_to_json(libxl_ctx *ctx, libxl_shutdown_reason p);
const char *libxl_shutdown_reason_to_string(libxl_shutdown_reason p);
int libxl_shutdown_reason_from_string(const char *s, libxl_shutdown_reason *e);
extern libxl_enum_string_table libxl_shutdown_reason_string_table[];
typedef enum libxl_vga_interface_type {
LIBXL_VGA_INTERFACE_TYPE_CIRRUS = 1,
LIBXL_VGA_INTERFACE_TYPE_STD = 2,
} libxl_vga_interface_type;
char *libxl_vga_interface_type_to_json(libxl_ctx *ctx, libxl_vga_interface_type p);
const char *libxl_vga_interface_type_to_string(libxl_vga_interface_type p);
int libxl_vga_interface_type_from_string(const char *s, libxl_vga_interface_type *e);
extern libxl_enum_string_table libxl_vga_interface_type_string_table[];
typedef enum libxl_vendor_device {
LIBXL_VENDOR_DEVICE_NONE = 0,
LIBXL_VENDOR_DEVICE_XENSERVER = 1,
} libxl_vendor_device;
char *libxl_vendor_device_to_json(libxl_ctx *ctx, libxl_vendor_device p);
const char *libxl_vendor_device_to_string(libxl_vendor_device p);
int libxl_vendor_device_from_string(const char *s, libxl_vendor_device *e);
extern libxl_enum_string_table libxl_vendor_device_string_table[];
typedef struct libxl_ioport_range {
uint32_t first;
uint32_t number;
} libxl_ioport_range;
void libxl_ioport_range_dispose(libxl_ioport_range *p);
void libxl_ioport_range_init(libxl_ioport_range *p);
char *libxl_ioport_range_to_json(libxl_ctx *ctx, libxl_ioport_range *p);
typedef struct libxl_iomem_range {
uint64_t start;
uint64_t number;
} libxl_iomem_range;
void libxl_iomem_range_dispose(libxl_iomem_range *p);
void libxl_iomem_range_init(libxl_iomem_range *p);
char *libxl_iomem_range_to_json(libxl_ctx *ctx, libxl_iomem_range *p);
typedef struct libxl_vga_interface_info {
libxl_vga_interface_type kind;
} libxl_vga_interface_info;
void libxl_vga_interface_info_dispose(libxl_vga_interface_info *p);
void libxl_vga_interface_info_init(libxl_vga_interface_info *p);
char *libxl_vga_interface_info_to_json(libxl_ctx *ctx, libxl_vga_interface_info *p);
typedef struct libxl_vnc_info {
libxl_defbool enable;
char * listen;
char * passwd;
int display;
libxl_defbool findunused;
} libxl_vnc_info;
void libxl_vnc_info_dispose(libxl_vnc_info *p);
void libxl_vnc_info_init(libxl_vnc_info *p);
char *libxl_vnc_info_to_json(libxl_ctx *ctx, libxl_vnc_info *p);
typedef struct libxl_spice_info {
libxl_defbool enable;
int port;
int tls_port;
char * host;
libxl_defbool disable_ticketing;
char * passwd;
libxl_defbool agent_mouse;
libxl_defbool vdagent;
libxl_defbool clipboard_sharing;
int usbredirection;
} libxl_spice_info;
void libxl_spice_info_dispose(libxl_spice_info *p);
void libxl_spice_info_init(libxl_spice_info *p);
char *libxl_spice_info_to_json(libxl_ctx *ctx, libxl_spice_info *p);
typedef struct libxl_sdl_info {
libxl_defbool enable;
libxl_defbool opengl;
char * display;
char * xauthority;
} libxl_sdl_info;
void libxl_sdl_info_dispose(libxl_sdl_info *p);
void libxl_sdl_info_init(libxl_sdl_info *p);
char *libxl_sdl_info_to_json(libxl_ctx *ctx, libxl_sdl_info *p);
typedef struct libxl_dominfo {
libxl_uuid uuid;
libxl_domid domid;
uint32_t ssidref;
bool running;
bool blocked;
bool paused;
bool shutdown;
bool dying;
libxl_shutdown_reason shutdown_reason;
uint64_t outstanding_memkb;
uint64_t current_memkb;
uint64_t shared_memkb;
uint64_t paged_memkb;
uint64_t max_memkb;
uint64_t cpu_time;
uint32_t vcpu_max_id;
uint32_t vcpu_online;
uint32_t cpupool;
libxl_domain_type domain_type;
} libxl_dominfo;
void libxl_dominfo_dispose(libxl_dominfo *p);
void libxl_dominfo_init(libxl_dominfo *p);
char *libxl_dominfo_to_json(libxl_ctx *ctx, libxl_dominfo *p);
typedef struct libxl_cpupoolinfo {
uint32_t poolid;
libxl_scheduler sched;
uint32_t n_dom;
libxl_bitmap cpumap;
} libxl_cpupoolinfo;
void libxl_cpupoolinfo_dispose(libxl_cpupoolinfo *p);
void libxl_cpupoolinfo_init(libxl_cpupoolinfo *p);
char *libxl_cpupoolinfo_to_json(libxl_ctx *ctx, libxl_cpupoolinfo *p);
typedef struct libxl_vminfo {
libxl_uuid uuid;
libxl_domid domid;
} libxl_vminfo;
void libxl_vminfo_dispose(libxl_vminfo *p);
void libxl_vminfo_init(libxl_vminfo *p);
char *libxl_vminfo_to_json(libxl_ctx *ctx, libxl_vminfo *p);
typedef struct libxl_version_info {
int xen_version_major;
int xen_version_minor;
char * xen_version_extra;
char * compiler;
char * compile_by;
char * compile_domain;
char * compile_date;
char * capabilities;
char * changeset;
uint64_t virt_start;
int pagesize;
char * commandline;
} libxl_version_info;
void libxl_version_info_dispose(libxl_version_info *p);
void libxl_version_info_init(libxl_version_info *p);
char *libxl_version_info_to_json(libxl_ctx *ctx, libxl_version_info *p);
typedef struct libxl_domain_create_info {
libxl_domain_type type;
libxl_defbool hap;
libxl_defbool oos;
uint32_t ssidref;
char * name;
libxl_uuid uuid;
libxl_key_value_list xsdata;
libxl_key_value_list platformdata;
uint32_t poolid;
libxl_defbool run_hotplug_scripts;
libxl_defbool pvh;
libxl_defbool driver_domain;
} libxl_domain_create_info;
void libxl_domain_create_info_dispose(libxl_domain_create_info *p);
void libxl_domain_create_info_init(libxl_domain_create_info *p);
char *libxl_domain_create_info_to_json(libxl_ctx *ctx, libxl_domain_create_info *p);
typedef struct libxl_domain_restore_params {
int checkpointed_stream;
} libxl_domain_restore_params;
void libxl_domain_restore_params_dispose(libxl_domain_restore_params *p);
void libxl_domain_restore_params_init(libxl_domain_restore_params *p);
char *libxl_domain_restore_params_to_json(libxl_ctx *ctx, libxl_domain_restore_params *p);
typedef struct libxl_domain_sched_params {
libxl_scheduler sched;
int weight;
int cap;
int period;
int slice;
int latency;
int extratime;
} libxl_domain_sched_params;
void libxl_domain_sched_params_dispose(libxl_domain_sched_params *p);
void libxl_domain_sched_params_init(libxl_domain_sched_params *p);
char *libxl_domain_sched_params_to_json(libxl_ctx *ctx, libxl_domain_sched_params *p);
typedef struct libxl_domain_build_info {
int max_vcpus;
libxl_bitmap avail_vcpus;
libxl_bitmap cpumap;
libxl_bitmap nodemap;
libxl_defbool numa_placement;
libxl_tsc_mode tsc_mode;
uint64_t max_memkb;
uint64_t target_memkb;
uint64_t video_memkb;
uint64_t shadow_memkb;
uint32_t rtc_timeoffset;
uint32_t exec_ssidref;
libxl_defbool localtime;
libxl_defbool disable_migrate;
libxl_cpuid_policy_list cpuid;
char * blkdev_start;
libxl_device_model_version device_model_version;
libxl_defbool device_model_stubdomain;
char * device_model;
uint32_t device_model_ssidref;
libxl_string_list extra;
libxl_string_list extra_pv;
libxl_string_list extra_hvm;
libxl_domain_sched_params sched_params;
int num_ioports;
libxl_ioport_range * ioports;
int num_irqs;
uint32_t * irqs;
int num_iomem;
libxl_iomem_range * iomem;
libxl_defbool claim_mode;
uint32_t event_channels;
libxl_domain_type type;
union {
struct {
char * firmware;
libxl_bios_type bios;
libxl_defbool pae;
libxl_defbool apic;
libxl_defbool acpi;
libxl_defbool acpi_s3;
libxl_defbool acpi_s4;
libxl_defbool nx;
libxl_defbool viridian;
char * timeoffset;
libxl_defbool hpet;
libxl_defbool vpt_align;
libxl_timer_mode timer_mode;
libxl_defbool nested_hvm;
char * smbios_firmware;
char * acpi_firmware;
libxl_defbool nographic;
libxl_vga_interface_info vga;
libxl_vnc_info vnc;
char * keymap;
libxl_sdl_info sdl;
libxl_spice_info spice;
libxl_defbool gfx_passthru;
char * serial;
char * boot;
libxl_defbool usb;
int usbversion;
char * usbdevice;
char * soundhw;
libxl_defbool xen_platform_pci;
libxl_string_list usbdevice_list;
libxl_vendor_device vendor_device;
} hvm;
struct {
char * kernel;
uint64_t slack_memkb;
char * bootloader;
libxl_string_list bootloader_args;
char * cmdline;
char * ramdisk;
const char * features;
libxl_defbool e820_host;
} pv;
} u;
} libxl_domain_build_info;
void libxl_domain_build_info_dispose(libxl_domain_build_info *p);
void libxl_domain_build_info_init(libxl_domain_build_info *p);
void libxl_domain_build_info_init_type(libxl_domain_build_info *p, libxl_domain_type type);
char *libxl_domain_build_info_to_json(libxl_ctx *ctx, libxl_domain_build_info *p);
typedef struct libxl_device_vfb {
libxl_domid backend_domid;
char * backend_domname;
libxl_devid devid;
libxl_vnc_info vnc;
libxl_sdl_info sdl;
char * keymap;
} libxl_device_vfb;
void libxl_device_vfb_dispose(libxl_device_vfb *p);
void libxl_device_vfb_init(libxl_device_vfb *p);
char *libxl_device_vfb_to_json(libxl_ctx *ctx, libxl_device_vfb *p);
typedef struct libxl_device_vkb {
libxl_domid backend_domid;
char * backend_domname;
libxl_devid devid;
} libxl_device_vkb;
void libxl_device_vkb_dispose(libxl_device_vkb *p);
void libxl_device_vkb_init(libxl_device_vkb *p);
char *libxl_device_vkb_to_json(libxl_ctx *ctx, libxl_device_vkb *p);
typedef struct libxl_device_disk {
libxl_domid backend_domid;
char * backend_domname;
char * pdev_path;
char * vdev;
libxl_disk_backend backend;
libxl_disk_format format;
char * script;
int removable;
int readwrite;
int is_cdrom;
} libxl_device_disk;
void libxl_device_disk_dispose(libxl_device_disk *p);
void libxl_device_disk_init(libxl_device_disk *p);
char *libxl_device_disk_to_json(libxl_ctx *ctx, libxl_device_disk *p);
typedef struct libxl_device_nic {
libxl_domid backend_domid;
char * backend_domname;
libxl_devid devid;
int mtu;
char * model;
libxl_mac mac;
char * ip;
char * bridge;
char * ifname;
char * script;
libxl_nic_type nictype;
uint64_t rate_bytes_per_interval;
uint32_t rate_interval_usecs;
char * gatewaydev;
} libxl_device_nic;
void libxl_device_nic_dispose(libxl_device_nic *p);
void libxl_device_nic_init(libxl_device_nic *p);
char *libxl_device_nic_to_json(libxl_ctx *ctx, libxl_device_nic *p);
typedef struct libxl_device_pci {
uint8_t func;
uint8_t dev;
uint8_t bus;
int domain;
uint32_t vdevfn;
uint32_t vfunc_mask;
bool msitranslate;
bool power_mgmt;
bool permissive;
} libxl_device_pci;
void libxl_device_pci_dispose(libxl_device_pci *p);
void libxl_device_pci_init(libxl_device_pci *p);
char *libxl_device_pci_to_json(libxl_ctx *ctx, libxl_device_pci *p);
typedef struct libxl_device_vtpm {
libxl_domid backend_domid;
char * backend_domname;
libxl_devid devid;
libxl_uuid uuid;
} libxl_device_vtpm;
void libxl_device_vtpm_dispose(libxl_device_vtpm *p);
void libxl_device_vtpm_init(libxl_device_vtpm *p);
char *libxl_device_vtpm_to_json(libxl_ctx *ctx, libxl_device_vtpm *p);
typedef struct libxl_domain_config {
libxl_domain_create_info c_info;
libxl_domain_build_info b_info;
int num_disks;
libxl_device_disk * disks;
int num_nics;
libxl_device_nic * nics;
int num_pcidevs;
libxl_device_pci * pcidevs;
int num_vfbs;
libxl_device_vfb * vfbs;
int num_vkbs;
libxl_device_vkb * vkbs;
int num_vtpms;
libxl_device_vtpm * vtpms;
libxl_action_on_shutdown on_poweroff;
libxl_action_on_shutdown on_reboot;
libxl_action_on_shutdown on_watchdog;
libxl_action_on_shutdown on_crash;
} libxl_domain_config;
void libxl_domain_config_dispose(libxl_domain_config *p);
void libxl_domain_config_init(libxl_domain_config *p);
char *libxl_domain_config_to_json(libxl_ctx *ctx, libxl_domain_config *p);
typedef struct libxl_diskinfo {
char * backend;
uint32_t backend_id;
char * frontend;
uint32_t frontend_id;
libxl_devid devid;
int state;
int evtch;
int rref;
} libxl_diskinfo;
void libxl_diskinfo_dispose(libxl_diskinfo *p);
void libxl_diskinfo_init(libxl_diskinfo *p);
char *libxl_diskinfo_to_json(libxl_ctx *ctx, libxl_diskinfo *p);
typedef struct libxl_nicinfo {
char * backend;
uint32_t backend_id;
char * frontend;
uint32_t frontend_id;
libxl_devid devid;
int state;
int evtch;
int rref_tx;
int rref_rx;
} libxl_nicinfo;
void libxl_nicinfo_dispose(libxl_nicinfo *p);
void libxl_nicinfo_init(libxl_nicinfo *p);
char *libxl_nicinfo_to_json(libxl_ctx *ctx, libxl_nicinfo *p);
typedef struct libxl_vtpminfo {
char * backend;
uint32_t backend_id;
char * frontend;
uint32_t frontend_id;
libxl_devid devid;
int state;
int evtch;
int rref;
libxl_uuid uuid;
} libxl_vtpminfo;
void libxl_vtpminfo_dispose(libxl_vtpminfo *p);
void libxl_vtpminfo_init(libxl_vtpminfo *p);
char *libxl_vtpminfo_to_json(libxl_ctx *ctx, libxl_vtpminfo *p);
typedef struct libxl_vcpuinfo {
uint32_t vcpuid;
uint32_t cpu;
bool online;
bool blocked;
bool running;
uint64_t vcpu_time;
libxl_bitmap cpumap;
} libxl_vcpuinfo;
void libxl_vcpuinfo_dispose(libxl_vcpuinfo *p);
void libxl_vcpuinfo_init(libxl_vcpuinfo *p);
char *libxl_vcpuinfo_to_json(libxl_ctx *ctx, libxl_vcpuinfo *p);
typedef struct libxl_physinfo {
uint32_t threads_per_core;
uint32_t cores_per_socket;
uint32_t max_cpu_id;
uint32_t nr_cpus;
uint32_t cpu_khz;
uint64_t total_pages;
uint64_t free_pages;
uint64_t scrub_pages;
uint64_t outstanding_pages;
uint64_t sharing_freed_pages;
uint64_t sharing_used_frames;
uint32_t nr_nodes;
libxl_hwcap hw_cap;
bool cap_hvm;
bool cap_hvm_directio;
} libxl_physinfo;
void libxl_physinfo_dispose(libxl_physinfo *p);
void libxl_physinfo_init(libxl_physinfo *p);
char *libxl_physinfo_to_json(libxl_ctx *ctx, libxl_physinfo *p);
typedef struct libxl_numainfo {
uint64_t size;
uint64_t free;
int num_dists;
uint32_t * dists;
} libxl_numainfo;
void libxl_numainfo_dispose(libxl_numainfo *p);
void libxl_numainfo_init(libxl_numainfo *p);
char *libxl_numainfo_to_json(libxl_ctx *ctx, libxl_numainfo *p);
typedef struct libxl_cputopology {
uint32_t core;
uint32_t socket;
uint32_t node;
} libxl_cputopology;
void libxl_cputopology_dispose(libxl_cputopology *p);
void libxl_cputopology_init(libxl_cputopology *p);
char *libxl_cputopology_to_json(libxl_ctx *ctx, libxl_cputopology *p);
typedef struct libxl_sched_credit_params {
int tslice_ms;
int ratelimit_us;
} libxl_sched_credit_params;
void libxl_sched_credit_params_init(libxl_sched_credit_params *p);
char *libxl_sched_credit_params_to_json(libxl_ctx *ctx, libxl_sched_credit_params *p);
typedef struct libxl_domain_remus_info {
int interval;
bool blackhole;
bool compression;
} libxl_domain_remus_info;
void libxl_domain_remus_info_dispose(libxl_domain_remus_info *p);
void libxl_domain_remus_info_init(libxl_domain_remus_info *p);
char *libxl_domain_remus_info_to_json(libxl_ctx *ctx, libxl_domain_remus_info *p);
typedef enum libxl_event_type {
LIBXL_EVENT_TYPE_DOMAIN_SHUTDOWN = 1,
LIBXL_EVENT_TYPE_DOMAIN_DEATH = 2,
LIBXL_EVENT_TYPE_DISK_EJECT = 3,
LIBXL_EVENT_TYPE_OPERATION_COMPLETE = 4,
LIBXL_EVENT_TYPE_DOMAIN_CREATE_CONSOLE_AVAILABLE = 5,
} libxl_event_type;
char *libxl_event_type_to_json(libxl_ctx *ctx, libxl_event_type p);
const char *libxl_event_type_to_string(libxl_event_type p);
int libxl_event_type_from_string(const char *s, libxl_event_type *e);
extern libxl_enum_string_table libxl_event_type_string_table[];
typedef struct libxl_event {
libxl_ev_link link;
libxl_domid domid;
libxl_uuid domuuid;
uint64_t for_user;
libxl_event_type type;
union {
struct {
uint8_t shutdown_reason;
} domain_shutdown;
struct {
} domain_death;
struct {
char * vdev;
libxl_device_disk disk;
} disk_eject;
struct {
int rc;
} operation_complete;
struct {
} domain_create_console_available;
} u;
} libxl_event;
void libxl_event_dispose(libxl_event *p);
void libxl_event_init(libxl_event *p);
void libxl_event_init_type(libxl_event *p, libxl_event_type type);
char *libxl_event_to_json(libxl_ctx *ctx, libxl_event *p);
#endif /* __LIBXL_TYPES_H */
|