remote_protocol-structs 61.1 KB
Newer Older
1
/* -*- c -*- */
2 3 4 5 6 7 8 9
enum {
        VIR_TYPED_PARAM_INT = 1,
        VIR_TYPED_PARAM_UINT = 2,
        VIR_TYPED_PARAM_LLONG = 3,
        VIR_TYPED_PARAM_ULLONG = 4,
        VIR_TYPED_PARAM_DOUBLE = 5,
        VIR_TYPED_PARAM_BOOLEAN = 6,
};
10
struct remote_nonnull_domain {
11 12 13
        remote_nonnull_string      name;
        remote_uuid                uuid;
        int                        id;
14 15
};
struct remote_nonnull_network {
16 17
        remote_nonnull_string      name;
        remote_uuid                uuid;
18 19
};
struct remote_nonnull_nwfilter {
20 21
        remote_nonnull_string      name;
        remote_uuid                uuid;
22 23
};
struct remote_nonnull_interface {
24 25
        remote_nonnull_string      name;
        remote_nonnull_string      mac;
26 27
};
struct remote_nonnull_storage_pool {
28 29
        remote_nonnull_string      name;
        remote_uuid                uuid;
30 31
};
struct remote_nonnull_storage_vol {
32 33 34
        remote_nonnull_string      pool;
        remote_nonnull_string      name;
        remote_nonnull_string      key;
35 36
};
struct remote_nonnull_node_device {
37
        remote_nonnull_string      name;
38 39
};
struct remote_nonnull_secret {
40 41 42
        remote_uuid                uuid;
        int                        usageType;
        remote_nonnull_string      usageID;
43 44
};
struct remote_nonnull_domain_snapshot {
45
        remote_nonnull_string      name;
46
        remote_nonnull_domain      dom;
47 48
};
struct remote_error {
49 50 51 52 53 54 55 56 57 58 59
        int                        code;
        int                        domain;
        remote_string              message;
        int                        level;
        remote_domain              dom;
        remote_string              str1;
        remote_string              str2;
        remote_string              str3;
        int                        int1;
        int                        int2;
        remote_network             net;
60
};
61 62 63 64 65
enum remote_auth_type {
        REMOTE_AUTH_NONE = 0,
        REMOTE_AUTH_SASL = 1,
        REMOTE_AUTH_POLKIT = 2,
};
66
struct remote_vcpu_info {
67 68 69 70
        u_int                      number;
        int                        state;
        uint64_t                   cpu_time;
        int                        cpu;
71
};
72
struct remote_typed_param_value {
73 74 75 76 77 78 79 80
        int                        type;
        union {
                int                i;
                u_int              ui;
                int64_t            l;
                uint64_t           ul;
                double             d;
                int                b;
81
        } remote_typed_param_value_u;
82
};
83
struct remote_typed_param {
84
        remote_nonnull_string      field;
85
        remote_typed_param_value   value;
86
};
87 88 89 90
struct remote_node_get_cpu_stats {
        remote_nonnull_string      field;
        uint64_t                   value;
};
91 92 93 94
struct remote_node_get_memory_stats {
        remote_nonnull_string      field;
        uint64_t                   value;
};
95
struct remote_open_args {
96
        remote_string              name;
97
        u_int                      flags;
98 99
};
struct remote_supports_feature_args {
100
        int                        feature;
101 102
};
struct remote_supports_feature_ret {
103
        int                        supported;
104 105
};
struct remote_get_type_ret {
106
        remote_nonnull_string      type;
107 108
};
struct remote_get_version_ret {
109
        uint64_t                   hv_ver;
110 111
};
struct remote_get_lib_version_ret {
112
        uint64_t                   lib_ver;
113 114
};
struct remote_get_hostname_ret {
115
        remote_nonnull_string      hostname;
116
};
117
struct remote_get_sysinfo_args {
118
        u_int                      flags;
119 120
};
struct remote_get_sysinfo_ret {
121
        remote_nonnull_string      sysinfo;
122
};
123
struct remote_get_uri_ret {
124
        remote_nonnull_string      uri;
125 126
};
struct remote_get_max_vcpus_args {
127
        remote_string              type;
128 129
};
struct remote_get_max_vcpus_ret {
130
        int                        max_vcpus;
131 132
};
struct remote_node_get_info_ret {
133
        char                       model[32];
134
        uint64_t                   memory;
135 136 137 138 139 140
        int                        cpus;
        int                        mhz;
        int                        nodes;
        int                        sockets;
        int                        cores;
        int                        threads;
141 142
};
struct remote_get_capabilities_ret {
143
        remote_nonnull_string      capabilities;
144
};
145 146 147 148 149 150 151 152 153 154 155 156
struct remote_node_get_cpu_stats_args {
        int                        cpuNum;
        int                        nparams;
        u_int                      flags;
};
struct remote_node_get_cpu_stats_ret {
        struct {
                u_int              params_len;
                remote_node_get_cpu_stats * params_val;
        } params;
        int                        nparams;
};
157 158 159 160 161 162 163 164 165 166 167 168
struct remote_node_get_memory_stats_args {
        int                        nparams;
        int                        cellNum;
        u_int                      flags;
};
struct remote_node_get_memory_stats_ret {
        struct {
                u_int              params_len;
                remote_node_get_memory_stats * params_val;
        } params;
        int                        nparams;
};
169
struct remote_node_get_cells_free_memory_args {
170
        int                        startCell;
171
        int                        maxcells;
172 173
};
struct remote_node_get_cells_free_memory_ret {
174
        struct {
175
                u_int              cells_len;
176
                uint64_t *         cells_val;
177
        } cells;
178 179
};
struct remote_node_get_free_memory_ret {
180
        uint64_t                   freeMem;
181 182
};
struct remote_domain_get_scheduler_type_args {
183
        remote_nonnull_domain      dom;
184 185
};
struct remote_domain_get_scheduler_type_ret {
186 187
        remote_nonnull_string      type;
        int                        nparams;
188 189
};
struct remote_domain_get_scheduler_parameters_args {
190 191
        remote_nonnull_domain      dom;
        int                        nparams;
192 193
};
struct remote_domain_get_scheduler_parameters_ret {
194 195
        struct {
                u_int              params_len;
196
                remote_typed_param * params_val;
197
        } params;
198
};
199 200 201 202 203 204 205 206 207 208 209
struct remote_domain_get_scheduler_parameters_flags_args {
        remote_nonnull_domain      dom;
        int                        nparams;
        u_int                      flags;
};
struct remote_domain_get_scheduler_parameters_flags_ret {
        struct {
                u_int              params_len;
                remote_typed_param * params_val;
        } params;
};
210
struct remote_domain_set_scheduler_parameters_args {
211 212 213
        remote_nonnull_domain      dom;
        struct {
                u_int              params_len;
214
                remote_typed_param * params_val;
215
        } params;
216
};
217 218 219 220
struct remote_domain_set_scheduler_parameters_flags_args {
        remote_nonnull_domain      dom;
        struct {
                u_int              params_len;
221
                remote_typed_param * params_val;
222 223 224
        } params;
        u_int                      flags;
};
225
struct remote_domain_set_blkio_parameters_args {
226 227 228
        remote_nonnull_domain      dom;
        struct {
                u_int              params_len;
229
                remote_typed_param * params_val;
230 231
        } params;
        u_int                      flags;
232 233
};
struct remote_domain_get_blkio_parameters_args {
234 235 236
        remote_nonnull_domain      dom;
        int                        nparams;
        u_int                      flags;
237 238
};
struct remote_domain_get_blkio_parameters_ret {
239 240
        struct {
                u_int              params_len;
241
                remote_typed_param * params_val;
242 243
        } params;
        int                        nparams;
244
};
245
struct remote_domain_set_memory_parameters_args {
246 247 248
        remote_nonnull_domain      dom;
        struct {
                u_int              params_len;
249
                remote_typed_param * params_val;
250 251
        } params;
        u_int                      flags;
252 253
};
struct remote_domain_get_memory_parameters_args {
254 255 256
        remote_nonnull_domain      dom;
        int                        nparams;
        u_int                      flags;
257 258
};
struct remote_domain_get_memory_parameters_ret {
259 260
        struct {
                u_int              params_len;
261
                remote_typed_param * params_val;
262 263
        } params;
        int                        nparams;
264
};
265
struct remote_domain_block_stats_args {
266 267
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
268 269
};
struct remote_domain_block_stats_ret {
270 271 272 273 274
        int64_t                    rd_req;
        int64_t                    rd_bytes;
        int64_t                    wr_req;
        int64_t                    wr_bytes;
        int64_t                    errs;
275 276
};
struct remote_domain_interface_stats_args {
277 278
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
279 280
};
struct remote_domain_interface_stats_ret {
281 282 283 284 285 286 287 288
        int64_t                    rx_bytes;
        int64_t                    rx_packets;
        int64_t                    rx_errs;
        int64_t                    rx_drop;
        int64_t                    tx_bytes;
        int64_t                    tx_packets;
        int64_t                    tx_errs;
        int64_t                    tx_drop;
289 290
};
struct remote_domain_memory_stats_args {
291 292 293
        remote_nonnull_domain      dom;
        u_int                      maxStats;
        u_int                      flags;
294 295
};
struct remote_domain_memory_stat {
296 297
        int                        tag;
        uint64_t                   val;
298 299
};
struct remote_domain_memory_stats_ret {
300 301 302 303
        struct {
                u_int              stats_len;
                remote_domain_memory_stat * stats_val;
        } stats;
304 305
};
struct remote_domain_block_peek_args {
306 307 308 309 310
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
        uint64_t                   offset;
        u_int                      size;
        u_int                      flags;
311 312
};
struct remote_domain_block_peek_ret {
313 314 315 316
        struct {
                u_int              buffer_len;
                char *             buffer_val;
        } buffer;
317 318
};
struct remote_domain_memory_peek_args {
319 320 321 322
        remote_nonnull_domain      dom;
        uint64_t                   offset;
        u_int                      size;
        u_int                      flags;
323 324
};
struct remote_domain_memory_peek_ret {
325 326 327 328
        struct {
                u_int              buffer_len;
                char *             buffer_val;
        } buffer;
329 330
};
struct remote_domain_get_block_info_args {
331 332 333
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
        u_int                      flags;
334 335
};
struct remote_domain_get_block_info_ret {
336 337 338
        uint64_t                   allocation;
        uint64_t                   capacity;
        uint64_t                   physical;
339 340
};
struct remote_list_domains_args {
341
        int                        maxids;
342 343
};
struct remote_list_domains_ret {
344 345 346 347
        struct {
                u_int              ids_len;
                int *              ids_val;
        } ids;
348 349
};
struct remote_num_of_domains_ret {
350
        int                        num;
351 352
};
struct remote_domain_create_xml_args {
353
        remote_nonnull_string      xml_desc;
354
        u_int                      flags;
355 356
};
struct remote_domain_create_xml_ret {
357
        remote_nonnull_domain      dom;
358 359
};
struct remote_domain_lookup_by_id_args {
360
        int                        id;
361 362
};
struct remote_domain_lookup_by_id_ret {
363
        remote_nonnull_domain      dom;
364 365
};
struct remote_domain_lookup_by_uuid_args {
366
        remote_uuid                uuid;
367 368
};
struct remote_domain_lookup_by_uuid_ret {
369
        remote_nonnull_domain      dom;
370 371
};
struct remote_domain_lookup_by_name_args {
372
        remote_nonnull_string      name;
373 374
};
struct remote_domain_lookup_by_name_ret {
375
        remote_nonnull_domain      dom;
376 377
};
struct remote_domain_suspend_args {
378
        remote_nonnull_domain      dom;
379 380
};
struct remote_domain_resume_args {
381
        remote_nonnull_domain      dom;
382 383
};
struct remote_domain_shutdown_args {
384
        remote_nonnull_domain      dom;
385 386
};
struct remote_domain_reboot_args {
387
        remote_nonnull_domain      dom;
388
        u_int                      flags;
389 390
};
struct remote_domain_destroy_args {
391
        remote_nonnull_domain      dom;
392 393
};
struct remote_domain_get_os_type_args {
394
        remote_nonnull_domain      dom;
395 396
};
struct remote_domain_get_os_type_ret {
397
        remote_nonnull_string      type;
398 399
};
struct remote_domain_get_max_memory_args {
400
        remote_nonnull_domain      dom;
401 402
};
struct remote_domain_get_max_memory_ret {
403
        uint64_t                   memory;
404 405
};
struct remote_domain_set_max_memory_args {
406 407
        remote_nonnull_domain      dom;
        uint64_t                   memory;
408 409
};
struct remote_domain_set_memory_args {
410 411
        remote_nonnull_domain      dom;
        uint64_t                   memory;
412
};
413
struct remote_domain_set_memory_flags_args {
414 415 416
        remote_nonnull_domain      dom;
        uint64_t                   memory;
        u_int                      flags;
417
};
418
struct remote_domain_get_info_args {
419
        remote_nonnull_domain      dom;
420 421
};
struct remote_domain_get_info_ret {
422
        u_char                     state;
423
        uint64_t                   maxMem;
424
        uint64_t                   memory;
425 426
        u_short                    nrVirtCpu;
        uint64_t                   cpuTime;
427 428
};
struct remote_domain_save_args {
429 430
        remote_nonnull_domain      dom;
        remote_nonnull_string      to;
431 432
};
struct remote_domain_restore_args {
433
        remote_nonnull_string      from;
434 435
};
struct remote_domain_core_dump_args {
436 437
        remote_nonnull_domain      dom;
        remote_nonnull_string      to;
438
        u_int                      flags;
439
};
440 441
struct remote_domain_screenshot_args {
        remote_nonnull_domain      dom;
E
Eric Blake 已提交
442 443
        u_int                      screen;
        u_int                      flags;
444 445 446 447
};
struct remote_domain_screenshot_ret {
        remote_string              mime;
};
448
struct remote_domain_get_xml_desc_args {
449
        remote_nonnull_domain      dom;
450
        u_int                      flags;
451
};
452
struct remote_domain_get_xml_desc_ret {
453
        remote_nonnull_string      xml;
454 455
};
struct remote_domain_migrate_prepare_args {
456 457 458 459
        remote_string              uri_in;
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
460 461
};
struct remote_domain_migrate_prepare_ret {
462 463 464 465 466
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_string              uri_out;
467 468
};
struct remote_domain_migrate_perform_args {
469 470 471 472 473 474 475 476 477
        remote_nonnull_domain      dom;
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_nonnull_string      uri;
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
478 479
};
struct remote_domain_migrate_finish_args {
480 481 482 483 484 485 486
        remote_nonnull_string      dname;
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_nonnull_string      uri;
        uint64_t                   flags;
487 488
};
struct remote_domain_migrate_finish_ret {
489
        remote_nonnull_domain      ddom;
490 491
};
struct remote_domain_migrate_prepare2_args {
492 493 494 495 496
        remote_string              uri_in;
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
        remote_nonnull_string      dom_xml;
497 498
};
struct remote_domain_migrate_prepare2_ret {
499 500 501 502 503
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_string              uri_out;
504 505
};
struct remote_domain_migrate_finish2_args {
506 507 508 509 510 511 512 513
        remote_nonnull_string      dname;
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_nonnull_string      uri;
        uint64_t                   flags;
        int                        retcode;
514 515
};
struct remote_domain_migrate_finish2_ret {
516
        remote_nonnull_domain      ddom;
517 518
};
struct remote_list_defined_domains_args {
519
        int                        maxnames;
520 521
};
struct remote_list_defined_domains_ret {
522 523 524 525
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
526 527
};
struct remote_num_of_defined_domains_ret {
528
        int                        num;
529 530
};
struct remote_domain_create_args {
531
        remote_nonnull_domain      dom;
532 533
};
struct remote_domain_create_with_flags_args {
534 535
        remote_nonnull_domain      dom;
        u_int                      flags;
536 537
};
struct remote_domain_create_with_flags_ret {
538
        remote_nonnull_domain      dom;
539 540
};
struct remote_domain_define_xml_args {
541
        remote_nonnull_string      xml;
542 543
};
struct remote_domain_define_xml_ret {
544
        remote_nonnull_domain      dom;
545 546
};
struct remote_domain_undefine_args {
547
        remote_nonnull_domain      dom;
548
};
549 550 551 552
struct remote_domain_inject_nmi_args {
        remote_nonnull_domain      dom;
        u_int                      flags;
};
553 554 555 556 557 558 559 560 561 562
struct remote_domain_send_key_args {
        remote_nonnull_domain      dom;
        u_int                      codeset;
        u_int                      holdtime;
        struct {
                u_int              keycodes_len;
                u_int *            keycodes_val;
        } keycodes;
        u_int                      flags;
};
563
struct remote_domain_set_vcpus_args {
564
        remote_nonnull_domain      dom;
565
        u_int                      nvcpus;
566
};
E
Eric Blake 已提交
567
struct remote_domain_set_vcpus_flags_args {
568 569 570
        remote_nonnull_domain      dom;
        u_int                      nvcpus;
        u_int                      flags;
E
Eric Blake 已提交
571 572
};
struct remote_domain_get_vcpus_flags_args {
573 574
        remote_nonnull_domain      dom;
        u_int                      flags;
E
Eric Blake 已提交
575 576
};
struct remote_domain_get_vcpus_flags_ret {
577
        int                        num;
E
Eric Blake 已提交
578
};
579
struct remote_domain_pin_vcpu_args {
580
        remote_nonnull_domain      dom;
581
        u_int                      vcpu;
582 583 584 585
        struct {
                u_int              cpumap_len;
                char *             cpumap_val;
        } cpumap;
586
};
587 588 589 590 591 592 593 594 595
struct remote_domain_pin_vcpu_flags_args {
        remote_nonnull_domain      dom;
        u_int                      vcpu;
        struct {
                u_int              cpumap_len;
                char *             cpumap_val;
        } cpumap;
        u_int                      flags;
};
E
Eric Blake 已提交
596
struct remote_domain_get_vcpu_pin_info_args {
597 598 599 600 601
        remote_nonnull_domain      dom;
        int                        ncpumaps;
        int                        maplen;
        u_int                      flags;
};
E
Eric Blake 已提交
602
struct remote_domain_get_vcpu_pin_info_ret {
603 604 605 606 607 608
        struct {
                u_int              cpumaps_len;
                char *             cpumaps_val;
        } cpumaps;
        int                        num;
};
609
struct remote_domain_get_vcpus_args {
610 611 612
        remote_nonnull_domain      dom;
        int                        maxinfo;
        int                        maplen;
613 614
};
struct remote_domain_get_vcpus_ret {
615 616 617 618 619 620 621 622
        struct {
                u_int              info_len;
                remote_vcpu_info * info_val;
        } info;
        struct {
                u_int              cpumaps_len;
                char *             cpumaps_val;
        } cpumaps;
623 624
};
struct remote_domain_get_max_vcpus_args {
625
        remote_nonnull_domain      dom;
626 627
};
struct remote_domain_get_max_vcpus_ret {
628
        int                        num;
629 630
};
struct remote_domain_get_security_label_args {
631
        remote_nonnull_domain      dom;
632 633
};
struct remote_domain_get_security_label_ret {
634 635 636 637 638
        struct {
                u_int              label_len;
                char *             label_val;
        } label;
        int                        enforcing;
639 640
};
struct remote_node_get_security_model_ret {
641 642 643 644 645 646 647 648
        struct {
                u_int              model_len;
                char *             model_val;
        } model;
        struct {
                u_int              doi_len;
                char *             doi_val;
        } doi;
649 650
};
struct remote_domain_attach_device_args {
651 652
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
653 654
};
struct remote_domain_attach_device_flags_args {
655 656 657
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
        u_int                      flags;
658 659
};
struct remote_domain_detach_device_args {
660 661
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
662 663
};
struct remote_domain_detach_device_flags_args {
664 665 666
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
        u_int                      flags;
667 668
};
struct remote_domain_update_device_flags_args {
669 670 671
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
        u_int                      flags;
672 673
};
struct remote_domain_get_autostart_args {
674
        remote_nonnull_domain      dom;
675 676
};
struct remote_domain_get_autostart_ret {
677
        int                        autostart;
678 679
};
struct remote_domain_set_autostart_args {
680 681
        remote_nonnull_domain      dom;
        int                        autostart;
682 683
};
struct remote_num_of_networks_ret {
684
        int                        num;
685 686
};
struct remote_list_networks_args {
687
        int                        maxnames;
688 689
};
struct remote_list_networks_ret {
690 691 692 693
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
694 695
};
struct remote_num_of_defined_networks_ret {
696
        int                        num;
697 698
};
struct remote_list_defined_networks_args {
699
        int                        maxnames;
700 701
};
struct remote_list_defined_networks_ret {
702 703 704 705
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
706 707
};
struct remote_network_lookup_by_uuid_args {
708
        remote_uuid                uuid;
709 710
};
struct remote_network_lookup_by_uuid_ret {
711
        remote_nonnull_network     net;
712 713
};
struct remote_network_lookup_by_name_args {
714
        remote_nonnull_string      name;
715 716
};
struct remote_network_lookup_by_name_ret {
717
        remote_nonnull_network     net;
718 719
};
struct remote_network_create_xml_args {
720
        remote_nonnull_string      xml;
721 722
};
struct remote_network_create_xml_ret {
723
        remote_nonnull_network     net;
724 725
};
struct remote_network_define_xml_args {
726
        remote_nonnull_string      xml;
727 728
};
struct remote_network_define_xml_ret {
729
        remote_nonnull_network     net;
730 731
};
struct remote_network_undefine_args {
732
        remote_nonnull_network     net;
733 734
};
struct remote_network_create_args {
735
        remote_nonnull_network     net;
736 737
};
struct remote_network_destroy_args {
738
        remote_nonnull_network     net;
739
};
740
struct remote_network_get_xml_desc_args {
741
        remote_nonnull_network     net;
742
        u_int                      flags;
743
};
744
struct remote_network_get_xml_desc_ret {
745
        remote_nonnull_string      xml;
746 747
};
struct remote_network_get_bridge_name_args {
748
        remote_nonnull_network     net;
749 750
};
struct remote_network_get_bridge_name_ret {
751
        remote_nonnull_string      name;
752 753
};
struct remote_network_get_autostart_args {
754
        remote_nonnull_network     net;
755 756
};
struct remote_network_get_autostart_ret {
757
        int                        autostart;
758 759
};
struct remote_network_set_autostart_args {
760 761
        remote_nonnull_network     net;
        int                        autostart;
762 763
};
struct remote_num_of_nwfilters_ret {
764
        int                        num;
765 766
};
struct remote_list_nwfilters_args {
767
        int                        maxnames;
768 769
};
struct remote_list_nwfilters_ret {
770 771 772 773
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
774 775
};
struct remote_nwfilter_lookup_by_uuid_args {
776
        remote_uuid                uuid;
777 778
};
struct remote_nwfilter_lookup_by_uuid_ret {
779
        remote_nonnull_nwfilter    nwfilter;
780 781
};
struct remote_nwfilter_lookup_by_name_args {
782
        remote_nonnull_string      name;
783 784
};
struct remote_nwfilter_lookup_by_name_ret {
785
        remote_nonnull_nwfilter    nwfilter;
786 787
};
struct remote_nwfilter_define_xml_args {
788
        remote_nonnull_string      xml;
789 790
};
struct remote_nwfilter_define_xml_ret {
791
        remote_nonnull_nwfilter    nwfilter;
792 793
};
struct remote_nwfilter_undefine_args {
794
        remote_nonnull_nwfilter    nwfilter;
795 796
};
struct remote_nwfilter_get_xml_desc_args {
797
        remote_nonnull_nwfilter    nwfilter;
798
        u_int                      flags;
799 800
};
struct remote_nwfilter_get_xml_desc_ret {
801
        remote_nonnull_string      xml;
802 803
};
struct remote_num_of_interfaces_ret {
804
        int                        num;
805 806
};
struct remote_list_interfaces_args {
807
        int                        maxnames;
808 809
};
struct remote_list_interfaces_ret {
810 811 812 813
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
814 815
};
struct remote_num_of_defined_interfaces_ret {
816
        int                        num;
817 818
};
struct remote_list_defined_interfaces_args {
819
        int                        maxnames;
820 821
};
struct remote_list_defined_interfaces_ret {
822 823 824 825
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
826 827
};
struct remote_interface_lookup_by_name_args {
828
        remote_nonnull_string      name;
829 830
};
struct remote_interface_lookup_by_name_ret {
831
        remote_nonnull_interface   iface;
832 833
};
struct remote_interface_lookup_by_mac_string_args {
834
        remote_nonnull_string      mac;
835 836
};
struct remote_interface_lookup_by_mac_string_ret {
837
        remote_nonnull_interface   iface;
838 839
};
struct remote_interface_get_xml_desc_args {
840 841
        remote_nonnull_interface   iface;
        u_int                      flags;
842 843
};
struct remote_interface_get_xml_desc_ret {
844
        remote_nonnull_string      xml;
845 846
};
struct remote_interface_define_xml_args {
847 848
        remote_nonnull_string      xml;
        u_int                      flags;
849 850
};
struct remote_interface_define_xml_ret {
851
        remote_nonnull_interface   iface;
852 853
};
struct remote_interface_undefine_args {
854
        remote_nonnull_interface   iface;
855 856
};
struct remote_interface_create_args {
857 858
        remote_nonnull_interface   iface;
        u_int                      flags;
859 860
};
struct remote_interface_destroy_args {
861 862
        remote_nonnull_interface   iface;
        u_int                      flags;
863
};
864
struct remote_interface_change_begin_args {
D
Daniel Veillard 已提交
865
        u_int                      flags;
866 867
};
struct remote_interface_change_commit_args {
D
Daniel Veillard 已提交
868
        u_int                      flags;
869 870
};
struct remote_interface_change_rollback_args {
D
Daniel Veillard 已提交
871
        u_int                      flags;
872
};
873
struct remote_auth_list_ret {
874 875 876 877
        struct {
                u_int              types_len;
                remote_auth_type * types_val;
        } types;
878 879
};
struct remote_auth_sasl_init_ret {
880
        remote_nonnull_string      mechlist;
881 882
};
struct remote_auth_sasl_start_args {
883 884 885 886 887 888
        remote_nonnull_string      mech;
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
889 890
};
struct remote_auth_sasl_start_ret {
891 892 893 894 895 896
        int                        complete;
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
897 898
};
struct remote_auth_sasl_step_args {
899 900 901 902 903
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
904 905
};
struct remote_auth_sasl_step_ret {
906 907 908 909 910 911
        int                        complete;
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
912 913
};
struct remote_auth_polkit_ret {
914
        int                        complete;
915 916
};
struct remote_num_of_storage_pools_ret {
917
        int                        num;
918 919
};
struct remote_list_storage_pools_args {
920
        int                        maxnames;
921 922
};
struct remote_list_storage_pools_ret {
923 924 925 926
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
927 928
};
struct remote_num_of_defined_storage_pools_ret {
929
        int                        num;
930 931
};
struct remote_list_defined_storage_pools_args {
932
        int                        maxnames;
933 934
};
struct remote_list_defined_storage_pools_ret {
935 936 937 938
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
939 940
};
struct remote_find_storage_pool_sources_args {
941 942 943
        remote_nonnull_string      type;
        remote_string              srcSpec;
        u_int                      flags;
944 945
};
struct remote_find_storage_pool_sources_ret {
946
        remote_nonnull_string      xml;
947 948
};
struct remote_storage_pool_lookup_by_uuid_args {
949
        remote_uuid                uuid;
950 951
};
struct remote_storage_pool_lookup_by_uuid_ret {
952
        remote_nonnull_storage_pool pool;
953 954
};
struct remote_storage_pool_lookup_by_name_args {
955
        remote_nonnull_string      name;
956 957
};
struct remote_storage_pool_lookup_by_name_ret {
958
        remote_nonnull_storage_pool pool;
959 960
};
struct remote_storage_pool_lookup_by_volume_args {
961
        remote_nonnull_storage_vol vol;
962 963
};
struct remote_storage_pool_lookup_by_volume_ret {
964
        remote_nonnull_storage_pool pool;
965 966
};
struct remote_storage_pool_create_xml_args {
967 968
        remote_nonnull_string      xml;
        u_int                      flags;
969 970
};
struct remote_storage_pool_create_xml_ret {
971
        remote_nonnull_storage_pool pool;
972 973
};
struct remote_storage_pool_define_xml_args {
974 975
        remote_nonnull_string      xml;
        u_int                      flags;
976 977
};
struct remote_storage_pool_define_xml_ret {
978
        remote_nonnull_storage_pool pool;
979 980
};
struct remote_storage_pool_build_args {
981 982
        remote_nonnull_storage_pool pool;
        u_int                      flags;
983 984
};
struct remote_storage_pool_undefine_args {
985
        remote_nonnull_storage_pool pool;
986 987
};
struct remote_storage_pool_create_args {
988 989
        remote_nonnull_storage_pool pool;
        u_int                      flags;
990 991
};
struct remote_storage_pool_destroy_args {
992
        remote_nonnull_storage_pool pool;
993 994
};
struct remote_storage_pool_delete_args {
995 996
        remote_nonnull_storage_pool pool;
        u_int                      flags;
997 998
};
struct remote_storage_pool_refresh_args {
999 1000
        remote_nonnull_storage_pool pool;
        u_int                      flags;
1001
};
1002
struct remote_storage_pool_get_xml_desc_args {
1003 1004
        remote_nonnull_storage_pool pool;
        u_int                      flags;
1005
};
1006
struct remote_storage_pool_get_xml_desc_ret {
1007
        remote_nonnull_string      xml;
1008 1009
};
struct remote_storage_pool_get_info_args {
1010
        remote_nonnull_storage_pool pool;
1011 1012
};
struct remote_storage_pool_get_info_ret {
1013 1014 1015 1016
        u_char                     state;
        uint64_t                   capacity;
        uint64_t                   allocation;
        uint64_t                   available;
1017 1018
};
struct remote_storage_pool_get_autostart_args {
1019
        remote_nonnull_storage_pool pool;
1020 1021
};
struct remote_storage_pool_get_autostart_ret {
1022
        int                        autostart;
1023 1024
};
struct remote_storage_pool_set_autostart_args {
1025 1026
        remote_nonnull_storage_pool pool;
        int                        autostart;
1027 1028
};
struct remote_storage_pool_num_of_volumes_args {
1029
        remote_nonnull_storage_pool pool;
1030 1031
};
struct remote_storage_pool_num_of_volumes_ret {
1032
        int                        num;
1033 1034
};
struct remote_storage_pool_list_volumes_args {
1035 1036
        remote_nonnull_storage_pool pool;
        int                        maxnames;
1037 1038
};
struct remote_storage_pool_list_volumes_ret {
1039 1040 1041 1042
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
1043 1044
};
struct remote_storage_vol_lookup_by_name_args {
1045 1046
        remote_nonnull_storage_pool pool;
        remote_nonnull_string      name;
1047 1048
};
struct remote_storage_vol_lookup_by_name_ret {
1049
        remote_nonnull_storage_vol vol;
1050 1051
};
struct remote_storage_vol_lookup_by_key_args {
1052
        remote_nonnull_string      key;
1053 1054
};
struct remote_storage_vol_lookup_by_key_ret {
1055
        remote_nonnull_storage_vol vol;
1056 1057
};
struct remote_storage_vol_lookup_by_path_args {
1058
        remote_nonnull_string      path;
1059 1060
};
struct remote_storage_vol_lookup_by_path_ret {
1061
        remote_nonnull_storage_vol vol;
1062 1063
};
struct remote_storage_vol_create_xml_args {
1064 1065 1066
        remote_nonnull_storage_pool pool;
        remote_nonnull_string      xml;
        u_int                      flags;
1067 1068
};
struct remote_storage_vol_create_xml_ret {
1069
        remote_nonnull_storage_vol vol;
1070 1071
};
struct remote_storage_vol_create_xml_from_args {
1072 1073 1074 1075
        remote_nonnull_storage_pool pool;
        remote_nonnull_string      xml;
        remote_nonnull_storage_vol clonevol;
        u_int                      flags;
1076 1077
};
struct remote_storage_vol_create_xml_from_ret {
1078
        remote_nonnull_storage_vol vol;
1079 1080
};
struct remote_storage_vol_delete_args {
1081 1082
        remote_nonnull_storage_vol vol;
        u_int                      flags;
1083 1084
};
struct remote_storage_vol_wipe_args {
1085 1086
        remote_nonnull_storage_vol vol;
        u_int                      flags;
1087
};
1088
struct remote_storage_vol_get_xml_desc_args {
1089 1090
        remote_nonnull_storage_vol vol;
        u_int                      flags;
1091
};
1092
struct remote_storage_vol_get_xml_desc_ret {
1093
        remote_nonnull_string      xml;
1094 1095
};
struct remote_storage_vol_get_info_args {
1096
        remote_nonnull_storage_vol vol;
1097 1098
};
struct remote_storage_vol_get_info_ret {
1099 1100 1101
        char                       type;
        uint64_t                   capacity;
        uint64_t                   allocation;
1102 1103
};
struct remote_storage_vol_get_path_args {
1104
        remote_nonnull_storage_vol vol;
1105 1106
};
struct remote_storage_vol_get_path_ret {
1107
        remote_nonnull_string      name;
1108 1109
};
struct remote_node_num_of_devices_args {
1110 1111
        remote_string              cap;
        u_int                      flags;
1112 1113
};
struct remote_node_num_of_devices_ret {
1114
        int                        num;
1115 1116
};
struct remote_node_list_devices_args {
1117 1118 1119
        remote_string              cap;
        int                        maxnames;
        u_int                      flags;
1120 1121
};
struct remote_node_list_devices_ret {
1122 1123 1124 1125
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
1126 1127
};
struct remote_node_device_lookup_by_name_args {
1128
        remote_nonnull_string      name;
1129 1130
};
struct remote_node_device_lookup_by_name_ret {
1131
        remote_nonnull_node_device dev;
1132
};
1133
struct remote_node_device_get_xml_desc_args {
1134 1135
        remote_nonnull_string      name;
        u_int                      flags;
1136
};
1137
struct remote_node_device_get_xml_desc_ret {
1138
        remote_nonnull_string      xml;
1139 1140
};
struct remote_node_device_get_parent_args {
1141
        remote_nonnull_string      name;
1142 1143
};
struct remote_node_device_get_parent_ret {
1144
        remote_string              parent;
1145 1146
};
struct remote_node_device_num_of_caps_args {
1147
        remote_nonnull_string      name;
1148 1149
};
struct remote_node_device_num_of_caps_ret {
1150
        int                        num;
1151 1152
};
struct remote_node_device_list_caps_args {
1153 1154
        remote_nonnull_string      name;
        int                        maxnames;
1155 1156
};
struct remote_node_device_list_caps_ret {
1157 1158 1159 1160
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
1161 1162
};
struct remote_node_device_dettach_args {
1163
        remote_nonnull_string      name;
1164 1165
};
struct remote_node_device_re_attach_args {
1166
        remote_nonnull_string      name;
1167 1168
};
struct remote_node_device_reset_args {
1169
        remote_nonnull_string      name;
1170 1171
};
struct remote_node_device_create_xml_args {
1172
        remote_nonnull_string      xml_desc;
1173
        u_int                      flags;
1174 1175
};
struct remote_node_device_create_xml_ret {
1176
        remote_nonnull_node_device dev;
1177 1178
};
struct remote_node_device_destroy_args {
1179
        remote_nonnull_string      name;
1180 1181
};
struct remote_domain_events_register_ret {
1182
        int                        cb_registered;
1183 1184
};
struct remote_domain_events_deregister_ret {
1185
        int                        cb_registered;
1186 1187
};
struct remote_domain_event_lifecycle_msg {
1188 1189 1190
        remote_nonnull_domain      dom;
        int                        event;
        int                        detail;
1191 1192
};
struct remote_domain_xml_from_native_args {
1193 1194 1195
        remote_nonnull_string      nativeFormat;
        remote_nonnull_string      nativeConfig;
        u_int                      flags;
1196 1197
};
struct remote_domain_xml_from_native_ret {
1198
        remote_nonnull_string      domainXml;
1199 1200
};
struct remote_domain_xml_to_native_args {
1201 1202 1203
        remote_nonnull_string      nativeFormat;
        remote_nonnull_string      domainXml;
        u_int                      flags;
1204 1205
};
struct remote_domain_xml_to_native_ret {
1206
        remote_nonnull_string      nativeConfig;
1207 1208
};
struct remote_num_of_secrets_ret {
1209
        int                        num;
1210 1211
};
struct remote_list_secrets_args {
1212
        int                        maxuuids;
1213 1214
};
struct remote_list_secrets_ret {
1215 1216 1217 1218
        struct {
                u_int              uuids_len;
                remote_nonnull_string * uuids_val;
        } uuids;
1219 1220
};
struct remote_secret_lookup_by_uuid_args {
1221
        remote_uuid                uuid;
1222 1223
};
struct remote_secret_lookup_by_uuid_ret {
1224
        remote_nonnull_secret      secret;
1225 1226
};
struct remote_secret_define_xml_args {
1227 1228
        remote_nonnull_string      xml;
        u_int                      flags;
1229 1230
};
struct remote_secret_define_xml_ret {
1231
        remote_nonnull_secret      secret;
1232 1233
};
struct remote_secret_get_xml_desc_args {
1234 1235
        remote_nonnull_secret      secret;
        u_int                      flags;
1236 1237
};
struct remote_secret_get_xml_desc_ret {
1238
        remote_nonnull_string      xml;
1239 1240
};
struct remote_secret_set_value_args {
1241 1242 1243 1244 1245 1246
        remote_nonnull_secret      secret;
        struct {
                u_int              value_len;
                char *             value_val;
        } value;
        u_int                      flags;
1247 1248
};
struct remote_secret_get_value_args {
1249 1250
        remote_nonnull_secret      secret;
        u_int                      flags;
1251 1252
};
struct remote_secret_get_value_ret {
1253 1254 1255 1256
        struct {
                u_int              value_len;
                char *             value_val;
        } value;
1257 1258
};
struct remote_secret_undefine_args {
1259
        remote_nonnull_secret      secret;
1260 1261
};
struct remote_secret_lookup_by_usage_args {
1262 1263
        int                        usageType;
        remote_nonnull_string      usageID;
1264 1265
};
struct remote_secret_lookup_by_usage_ret {
1266
        remote_nonnull_secret      secret;
1267 1268
};
struct remote_domain_migrate_prepare_tunnel_args {
1269 1270 1271 1272
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
        remote_nonnull_string      dom_xml;
1273 1274
};
struct remote_is_secure_ret {
1275
        int                        secure;
1276 1277
};
struct remote_domain_is_active_args {
1278
        remote_nonnull_domain      dom;
1279 1280
};
struct remote_domain_is_active_ret {
1281
        int                        active;
1282 1283
};
struct remote_domain_is_persistent_args {
1284
        remote_nonnull_domain      dom;
1285 1286
};
struct remote_domain_is_persistent_ret {
1287
        int                        persistent;
1288
};
O
Osier Yang 已提交
1289
struct remote_domain_is_updated_args {
1290
        remote_nonnull_domain      dom;
O
Osier Yang 已提交
1291 1292
};
struct remote_domain_is_updated_ret {
1293
        int                        updated;
O
Osier Yang 已提交
1294
};
1295
struct remote_network_is_active_args {
1296
        remote_nonnull_network     net;
1297 1298
};
struct remote_network_is_active_ret {
1299
        int                        active;
1300 1301
};
struct remote_network_is_persistent_args {
1302
        remote_nonnull_network     net;
1303 1304
};
struct remote_network_is_persistent_ret {
1305
        int                        persistent;
1306 1307
};
struct remote_storage_pool_is_active_args {
1308
        remote_nonnull_storage_pool pool;
1309 1310
};
struct remote_storage_pool_is_active_ret {
1311
        int                        active;
1312 1313
};
struct remote_storage_pool_is_persistent_args {
1314
        remote_nonnull_storage_pool pool;
1315 1316
};
struct remote_storage_pool_is_persistent_ret {
1317
        int                        persistent;
1318 1319
};
struct remote_interface_is_active_args {
1320
        remote_nonnull_interface   iface;
1321 1322
};
struct remote_interface_is_active_ret {
1323
        int                        active;
1324 1325
};
struct remote_cpu_compare_args {
1326 1327
        remote_nonnull_string      xml;
        u_int                      flags;
1328 1329
};
struct remote_cpu_compare_ret {
1330
        int                        result;
1331 1332
};
struct remote_cpu_baseline_args {
1333 1334 1335 1336 1337
        struct {
                u_int              xmlCPUs_len;
                remote_nonnull_string * xmlCPUs_val;
        } xmlCPUs;
        u_int                      flags;
1338 1339
};
struct remote_cpu_baseline_ret {
1340
        remote_nonnull_string      cpu;
1341 1342
};
struct remote_domain_get_job_info_args {
1343
        remote_nonnull_domain      dom;
1344 1345
};
struct remote_domain_get_job_info_ret {
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357
        int                        type;
        uint64_t                   timeElapsed;
        uint64_t                   timeRemaining;
        uint64_t                   dataTotal;
        uint64_t                   dataProcessed;
        uint64_t                   dataRemaining;
        uint64_t                   memTotal;
        uint64_t                   memProcessed;
        uint64_t                   memRemaining;
        uint64_t                   fileTotal;
        uint64_t                   fileProcessed;
        uint64_t                   fileRemaining;
1358 1359
};
struct remote_domain_abort_job_args {
1360
        remote_nonnull_domain      dom;
1361 1362
};
struct remote_domain_migrate_set_max_downtime_args {
1363 1364 1365
        remote_nonnull_domain      dom;
        uint64_t                   downtime;
        u_int                      flags;
1366
};
1367
struct remote_domain_migrate_set_max_speed_args {
1368 1369 1370
        remote_nonnull_domain      dom;
        uint64_t                   bandwidth;
        u_int                      flags;
1371
};
1372
struct remote_domain_events_register_any_args {
1373
        int                        eventID;
1374 1375
};
struct remote_domain_events_deregister_any_args {
1376
        int                        eventID;
1377 1378
};
struct remote_domain_event_reboot_msg {
1379
        remote_nonnull_domain      dom;
1380 1381
};
struct remote_domain_event_rtc_change_msg {
1382 1383
        remote_nonnull_domain      dom;
        int64_t                    offset;
1384 1385
};
struct remote_domain_event_watchdog_msg {
1386 1387
        remote_nonnull_domain      dom;
        int                        action;
1388 1389
};
struct remote_domain_event_io_error_msg {
1390 1391 1392 1393
        remote_nonnull_domain      dom;
        remote_nonnull_string      srcPath;
        remote_nonnull_string      devAlias;
        int                        action;
1394 1395
};
struct remote_domain_event_io_error_reason_msg {
1396 1397 1398 1399 1400
        remote_nonnull_domain      dom;
        remote_nonnull_string      srcPath;
        remote_nonnull_string      devAlias;
        int                        action;
        remote_nonnull_string      reason;
1401 1402
};
struct remote_domain_event_graphics_address {
1403 1404 1405
        int                        family;
        remote_nonnull_string      node;
        remote_nonnull_string      service;
1406 1407
};
struct remote_domain_event_graphics_identity {
1408 1409
        remote_nonnull_string      type;
        remote_nonnull_string      name;
1410 1411
};
struct remote_domain_event_graphics_msg {
1412 1413 1414 1415 1416 1417 1418 1419 1420
        remote_nonnull_domain      dom;
        int                        phase;
        remote_domain_event_graphics_address local;
        remote_domain_event_graphics_address remote;
        remote_nonnull_string      authScheme;
        struct {
                u_int              subject_len;
                remote_domain_event_graphics_identity * subject_val;
        } subject;
1421 1422
};
struct remote_domain_managed_save_args {
1423 1424
        remote_nonnull_domain      dom;
        u_int                      flags;
1425 1426
};
struct remote_domain_has_managed_save_image_args {
1427 1428
        remote_nonnull_domain      dom;
        u_int                      flags;
1429 1430
};
struct remote_domain_has_managed_save_image_ret {
1431
        int                        result;
1432 1433
};
struct remote_domain_managed_save_remove_args {
1434 1435
        remote_nonnull_domain      dom;
        u_int                      flags;
1436 1437
};
struct remote_domain_snapshot_create_xml_args {
1438
        remote_nonnull_domain      dom;
1439
        remote_nonnull_string      xml_desc;
1440
        u_int                      flags;
1441 1442
};
struct remote_domain_snapshot_create_xml_ret {
1443
        remote_nonnull_domain_snapshot snap;
1444
};
1445
struct remote_domain_snapshot_get_xml_desc_args {
1446
        remote_nonnull_domain_snapshot snap;
1447
        u_int                      flags;
1448
};
1449
struct remote_domain_snapshot_get_xml_desc_ret {
1450
        remote_nonnull_string      xml;
1451 1452
};
struct remote_domain_snapshot_num_args {
1453
        remote_nonnull_domain      dom;
1454
        u_int                      flags;
1455 1456
};
struct remote_domain_snapshot_num_ret {
1457
        int                        num;
1458 1459
};
struct remote_domain_snapshot_list_names_args {
1460
        remote_nonnull_domain      dom;
1461
        int                        maxnames;
1462
        u_int                      flags;
1463 1464
};
struct remote_domain_snapshot_list_names_ret {
1465 1466 1467 1468
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
1469 1470
};
struct remote_domain_snapshot_lookup_by_name_args {
1471
        remote_nonnull_domain      dom;
1472
        remote_nonnull_string      name;
1473
        u_int                      flags;
1474 1475
};
struct remote_domain_snapshot_lookup_by_name_ret {
1476
        remote_nonnull_domain_snapshot snap;
1477 1478
};
struct remote_domain_has_current_snapshot_args {
1479
        remote_nonnull_domain      dom;
1480
        u_int                      flags;
1481 1482
};
struct remote_domain_has_current_snapshot_ret {
1483
        int                        result;
1484 1485
};
struct remote_domain_snapshot_current_args {
1486
        remote_nonnull_domain      dom;
1487
        u_int                      flags;
1488 1489
};
struct remote_domain_snapshot_current_ret {
1490
        remote_nonnull_domain_snapshot snap;
1491 1492
};
struct remote_domain_revert_to_snapshot_args {
1493
        remote_nonnull_domain_snapshot snap;
1494
        u_int                      flags;
1495 1496
};
struct remote_domain_snapshot_delete_args {
1497
        remote_nonnull_domain_snapshot snap;
1498
        u_int                      flags;
1499
};
1500
struct remote_domain_open_console_args {
1501
        remote_nonnull_domain      dom;
1502 1503
        remote_string              devname;
        u_int                      flags;
1504
};
1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516
struct remote_storage_vol_upload_args {
        remote_nonnull_storage_vol vol;
        uint64_t                   offset;
        uint64_t                   length;
        u_int                      flags;
};
struct remote_storage_vol_download_args {
        remote_nonnull_storage_vol vol;
        uint64_t                   offset;
        uint64_t                   length;
        u_int                      flags;
};
1517 1518 1519 1520 1521 1522 1523 1524
struct remote_domain_get_state_args {
        remote_nonnull_domain      dom;
        u_int                      flags;
};
struct remote_domain_get_state_ret {
        int                        state;
        int                        reason;
};
1525 1526
struct remote_domain_migrate_begin3_args {
        remote_nonnull_domain      dom;
1527
        remote_string              xmlin;
1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
};
struct remote_domain_migrate_begin3_ret {
        struct {
                u_int              cookie_out_len;
                char *             cookie_out_val;
        } cookie_out;
        remote_nonnull_string      xml;
};
struct remote_domain_migrate_prepare3_args {
        struct {
                u_int              cookie_in_len;
                char *             cookie_in_val;
        } cookie_in;
        remote_string              uri_in;
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
        remote_nonnull_string      dom_xml;
};
struct remote_domain_migrate_prepare3_ret {
        struct {
                u_int              cookie_out_len;
                char *             cookie_out_val;
        } cookie_out;
        remote_string              uri_out;
};
struct remote_domain_migrate_prepare_tunnel3_args {
        struct {
                u_int              cookie_in_len;
                char *             cookie_in_val;
        } cookie_in;
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
        remote_nonnull_string      dom_xml;
};
struct remote_domain_migrate_prepare_tunnel3_ret {
        struct {
                u_int              cookie_out_len;
                char *             cookie_out_val;
        } cookie_out;
};
struct remote_domain_migrate_perform3_args {
        remote_nonnull_domain      dom;
1575
        remote_string              xmlin;
1576 1577 1578 1579
        struct {
                u_int              cookie_in_len;
                char *             cookie_in_val;
        } cookie_in;
1580 1581
        remote_string              dconnuri;
        remote_string              uri;
1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
};
struct remote_domain_migrate_perform3_ret {
        struct {
                u_int              cookie_out_len;
                char *             cookie_out_val;
        } cookie_out;
};
struct remote_domain_migrate_finish3_args {
        remote_nonnull_string      dname;
        struct {
                u_int              cookie_in_len;
                char *             cookie_in_val;
        } cookie_in;
1598 1599
        remote_string              dconnuri;
        remote_string              uri;
1600 1601 1602 1603
        uint64_t                   flags;
        int                        cancelled;
};
struct remote_domain_migrate_finish3_ret {
1604
        remote_nonnull_domain      dom;
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618
        struct {
                u_int              cookie_out_len;
                char *             cookie_out_val;
        } cookie_out;
};
struct remote_domain_migrate_confirm3_args {
        remote_nonnull_domain      dom;
        struct {
                u_int              cookie_in_len;
                char *             cookie_in_val;
        } cookie_in;
        uint64_t                   flags;
        int                        cancelled;
};
1619 1620 1621
struct remote_domain_event_control_error_msg {
        remote_nonnull_domain      dom;
};
1622 1623 1624 1625 1626 1627 1628 1629 1630
struct remote_domain_get_control_info_args {
        remote_nonnull_domain      dom;
        u_int                      flags;
};
struct remote_domain_get_control_info_ret {
        u_int                      state;
        u_int                      details;
        uint64_t                   stateTime;
};
1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862
enum remote_procedure {
        REMOTE_PROC_OPEN = 1,
        REMOTE_PROC_CLOSE = 2,
        REMOTE_PROC_GET_TYPE = 3,
        REMOTE_PROC_GET_VERSION = 4,
        REMOTE_PROC_GET_MAX_VCPUS = 5,
        REMOTE_PROC_NODE_GET_INFO = 6,
        REMOTE_PROC_GET_CAPABILITIES = 7,
        REMOTE_PROC_DOMAIN_ATTACH_DEVICE = 8,
        REMOTE_PROC_DOMAIN_CREATE = 9,
        REMOTE_PROC_DOMAIN_CREATE_XML = 10,
        REMOTE_PROC_DOMAIN_DEFINE_XML = 11,
        REMOTE_PROC_DOMAIN_DESTROY = 12,
        REMOTE_PROC_DOMAIN_DETACH_DEVICE = 13,
        REMOTE_PROC_DOMAIN_GET_XML_DESC = 14,
        REMOTE_PROC_DOMAIN_GET_AUTOSTART = 15,
        REMOTE_PROC_DOMAIN_GET_INFO = 16,
        REMOTE_PROC_DOMAIN_GET_MAX_MEMORY = 17,
        REMOTE_PROC_DOMAIN_GET_MAX_VCPUS = 18,
        REMOTE_PROC_DOMAIN_GET_OS_TYPE = 19,
        REMOTE_PROC_DOMAIN_GET_VCPUS = 20,
        REMOTE_PROC_LIST_DEFINED_DOMAINS = 21,
        REMOTE_PROC_DOMAIN_LOOKUP_BY_ID = 22,
        REMOTE_PROC_DOMAIN_LOOKUP_BY_NAME = 23,
        REMOTE_PROC_DOMAIN_LOOKUP_BY_UUID = 24,
        REMOTE_PROC_NUM_OF_DEFINED_DOMAINS = 25,
        REMOTE_PROC_DOMAIN_PIN_VCPU = 26,
        REMOTE_PROC_DOMAIN_REBOOT = 27,
        REMOTE_PROC_DOMAIN_RESUME = 28,
        REMOTE_PROC_DOMAIN_SET_AUTOSTART = 29,
        REMOTE_PROC_DOMAIN_SET_MAX_MEMORY = 30,
        REMOTE_PROC_DOMAIN_SET_MEMORY = 31,
        REMOTE_PROC_DOMAIN_SET_VCPUS = 32,
        REMOTE_PROC_DOMAIN_SHUTDOWN = 33,
        REMOTE_PROC_DOMAIN_SUSPEND = 34,
        REMOTE_PROC_DOMAIN_UNDEFINE = 35,
        REMOTE_PROC_LIST_DEFINED_NETWORKS = 36,
        REMOTE_PROC_LIST_DOMAINS = 37,
        REMOTE_PROC_LIST_NETWORKS = 38,
        REMOTE_PROC_NETWORK_CREATE = 39,
        REMOTE_PROC_NETWORK_CREATE_XML = 40,
        REMOTE_PROC_NETWORK_DEFINE_XML = 41,
        REMOTE_PROC_NETWORK_DESTROY = 42,
        REMOTE_PROC_NETWORK_GET_XML_DESC = 43,
        REMOTE_PROC_NETWORK_GET_AUTOSTART = 44,
        REMOTE_PROC_NETWORK_GET_BRIDGE_NAME = 45,
        REMOTE_PROC_NETWORK_LOOKUP_BY_NAME = 46,
        REMOTE_PROC_NETWORK_LOOKUP_BY_UUID = 47,
        REMOTE_PROC_NETWORK_SET_AUTOSTART = 48,
        REMOTE_PROC_NETWORK_UNDEFINE = 49,
        REMOTE_PROC_NUM_OF_DEFINED_NETWORKS = 50,
        REMOTE_PROC_NUM_OF_DOMAINS = 51,
        REMOTE_PROC_NUM_OF_NETWORKS = 52,
        REMOTE_PROC_DOMAIN_CORE_DUMP = 53,
        REMOTE_PROC_DOMAIN_RESTORE = 54,
        REMOTE_PROC_DOMAIN_SAVE = 55,
        REMOTE_PROC_DOMAIN_GET_SCHEDULER_TYPE = 56,
        REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS = 57,
        REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS = 58,
        REMOTE_PROC_GET_HOSTNAME = 59,
        REMOTE_PROC_SUPPORTS_FEATURE = 60,
        REMOTE_PROC_DOMAIN_MIGRATE_PREPARE = 61,
        REMOTE_PROC_DOMAIN_MIGRATE_PERFORM = 62,
        REMOTE_PROC_DOMAIN_MIGRATE_FINISH = 63,
        REMOTE_PROC_DOMAIN_BLOCK_STATS = 64,
        REMOTE_PROC_DOMAIN_INTERFACE_STATS = 65,
        REMOTE_PROC_AUTH_LIST = 66,
        REMOTE_PROC_AUTH_SASL_INIT = 67,
        REMOTE_PROC_AUTH_SASL_START = 68,
        REMOTE_PROC_AUTH_SASL_STEP = 69,
        REMOTE_PROC_AUTH_POLKIT = 70,
        REMOTE_PROC_NUM_OF_STORAGE_POOLS = 71,
        REMOTE_PROC_LIST_STORAGE_POOLS = 72,
        REMOTE_PROC_NUM_OF_DEFINED_STORAGE_POOLS = 73,
        REMOTE_PROC_LIST_DEFINED_STORAGE_POOLS = 74,
        REMOTE_PROC_FIND_STORAGE_POOL_SOURCES = 75,
        REMOTE_PROC_STORAGE_POOL_CREATE_XML = 76,
        REMOTE_PROC_STORAGE_POOL_DEFINE_XML = 77,
        REMOTE_PROC_STORAGE_POOL_CREATE = 78,
        REMOTE_PROC_STORAGE_POOL_BUILD = 79,
        REMOTE_PROC_STORAGE_POOL_DESTROY = 80,
        REMOTE_PROC_STORAGE_POOL_DELETE = 81,
        REMOTE_PROC_STORAGE_POOL_UNDEFINE = 82,
        REMOTE_PROC_STORAGE_POOL_REFRESH = 83,
        REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_NAME = 84,
        REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_UUID = 85,
        REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_VOLUME = 86,
        REMOTE_PROC_STORAGE_POOL_GET_INFO = 87,
        REMOTE_PROC_STORAGE_POOL_GET_XML_DESC = 88,
        REMOTE_PROC_STORAGE_POOL_GET_AUTOSTART = 89,
        REMOTE_PROC_STORAGE_POOL_SET_AUTOSTART = 90,
        REMOTE_PROC_STORAGE_POOL_NUM_OF_VOLUMES = 91,
        REMOTE_PROC_STORAGE_POOL_LIST_VOLUMES = 92,
        REMOTE_PROC_STORAGE_VOL_CREATE_XML = 93,
        REMOTE_PROC_STORAGE_VOL_DELETE = 94,
        REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_NAME = 95,
        REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_KEY = 96,
        REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_PATH = 97,
        REMOTE_PROC_STORAGE_VOL_GET_INFO = 98,
        REMOTE_PROC_STORAGE_VOL_GET_XML_DESC = 99,
        REMOTE_PROC_STORAGE_VOL_GET_PATH = 100,
        REMOTE_PROC_NODE_GET_CELLS_FREE_MEMORY = 101,
        REMOTE_PROC_NODE_GET_FREE_MEMORY = 102,
        REMOTE_PROC_DOMAIN_BLOCK_PEEK = 103,
        REMOTE_PROC_DOMAIN_MEMORY_PEEK = 104,
        REMOTE_PROC_DOMAIN_EVENTS_REGISTER = 105,
        REMOTE_PROC_DOMAIN_EVENTS_DEREGISTER = 106,
        REMOTE_PROC_DOMAIN_EVENT_LIFECYCLE = 107,
        REMOTE_PROC_DOMAIN_MIGRATE_PREPARE2 = 108,
        REMOTE_PROC_DOMAIN_MIGRATE_FINISH2 = 109,
        REMOTE_PROC_GET_URI = 110,
        REMOTE_PROC_NODE_NUM_OF_DEVICES = 111,
        REMOTE_PROC_NODE_LIST_DEVICES = 112,
        REMOTE_PROC_NODE_DEVICE_LOOKUP_BY_NAME = 113,
        REMOTE_PROC_NODE_DEVICE_GET_XML_DESC = 114,
        REMOTE_PROC_NODE_DEVICE_GET_PARENT = 115,
        REMOTE_PROC_NODE_DEVICE_NUM_OF_CAPS = 116,
        REMOTE_PROC_NODE_DEVICE_LIST_CAPS = 117,
        REMOTE_PROC_NODE_DEVICE_DETTACH = 118,
        REMOTE_PROC_NODE_DEVICE_RE_ATTACH = 119,
        REMOTE_PROC_NODE_DEVICE_RESET = 120,
        REMOTE_PROC_DOMAIN_GET_SECURITY_LABEL = 121,
        REMOTE_PROC_NODE_GET_SECURITY_MODEL = 122,
        REMOTE_PROC_NODE_DEVICE_CREATE_XML = 123,
        REMOTE_PROC_NODE_DEVICE_DESTROY = 124,
        REMOTE_PROC_STORAGE_VOL_CREATE_XML_FROM = 125,
        REMOTE_PROC_NUM_OF_INTERFACES = 126,
        REMOTE_PROC_LIST_INTERFACES = 127,
        REMOTE_PROC_INTERFACE_LOOKUP_BY_NAME = 128,
        REMOTE_PROC_INTERFACE_LOOKUP_BY_MAC_STRING = 129,
        REMOTE_PROC_INTERFACE_GET_XML_DESC = 130,
        REMOTE_PROC_INTERFACE_DEFINE_XML = 131,
        REMOTE_PROC_INTERFACE_UNDEFINE = 132,
        REMOTE_PROC_INTERFACE_CREATE = 133,
        REMOTE_PROC_INTERFACE_DESTROY = 134,
        REMOTE_PROC_DOMAIN_XML_FROM_NATIVE = 135,
        REMOTE_PROC_DOMAIN_XML_TO_NATIVE = 136,
        REMOTE_PROC_NUM_OF_DEFINED_INTERFACES = 137,
        REMOTE_PROC_LIST_DEFINED_INTERFACES = 138,
        REMOTE_PROC_NUM_OF_SECRETS = 139,
        REMOTE_PROC_LIST_SECRETS = 140,
        REMOTE_PROC_SECRET_LOOKUP_BY_UUID = 141,
        REMOTE_PROC_SECRET_DEFINE_XML = 142,
        REMOTE_PROC_SECRET_GET_XML_DESC = 143,
        REMOTE_PROC_SECRET_SET_VALUE = 144,
        REMOTE_PROC_SECRET_GET_VALUE = 145,
        REMOTE_PROC_SECRET_UNDEFINE = 146,
        REMOTE_PROC_SECRET_LOOKUP_BY_USAGE = 147,
        REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL = 148,
        REMOTE_PROC_IS_SECURE = 149,
        REMOTE_PROC_DOMAIN_IS_ACTIVE = 150,
        REMOTE_PROC_DOMAIN_IS_PERSISTENT = 151,
        REMOTE_PROC_NETWORK_IS_ACTIVE = 152,
        REMOTE_PROC_NETWORK_IS_PERSISTENT = 153,
        REMOTE_PROC_STORAGE_POOL_IS_ACTIVE = 154,
        REMOTE_PROC_STORAGE_POOL_IS_PERSISTENT = 155,
        REMOTE_PROC_INTERFACE_IS_ACTIVE = 156,
        REMOTE_PROC_GET_LIB_VERSION = 157,
        REMOTE_PROC_CPU_COMPARE = 158,
        REMOTE_PROC_DOMAIN_MEMORY_STATS = 159,
        REMOTE_PROC_DOMAIN_ATTACH_DEVICE_FLAGS = 160,
        REMOTE_PROC_DOMAIN_DETACH_DEVICE_FLAGS = 161,
        REMOTE_PROC_CPU_BASELINE = 162,
        REMOTE_PROC_DOMAIN_GET_JOB_INFO = 163,
        REMOTE_PROC_DOMAIN_ABORT_JOB = 164,
        REMOTE_PROC_STORAGE_VOL_WIPE = 165,
        REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_DOWNTIME = 166,
        REMOTE_PROC_DOMAIN_EVENTS_REGISTER_ANY = 167,
        REMOTE_PROC_DOMAIN_EVENTS_DEREGISTER_ANY = 168,
        REMOTE_PROC_DOMAIN_EVENT_REBOOT = 169,
        REMOTE_PROC_DOMAIN_EVENT_RTC_CHANGE = 170,
        REMOTE_PROC_DOMAIN_EVENT_WATCHDOG = 171,
        REMOTE_PROC_DOMAIN_EVENT_IO_ERROR = 172,
        REMOTE_PROC_DOMAIN_EVENT_GRAPHICS = 173,
        REMOTE_PROC_DOMAIN_UPDATE_DEVICE_FLAGS = 174,
        REMOTE_PROC_NWFILTER_LOOKUP_BY_NAME = 175,
        REMOTE_PROC_NWFILTER_LOOKUP_BY_UUID = 176,
        REMOTE_PROC_NWFILTER_GET_XML_DESC = 177,
        REMOTE_PROC_NUM_OF_NWFILTERS = 178,
        REMOTE_PROC_LIST_NWFILTERS = 179,
        REMOTE_PROC_NWFILTER_DEFINE_XML = 180,
        REMOTE_PROC_NWFILTER_UNDEFINE = 181,
        REMOTE_PROC_DOMAIN_MANAGED_SAVE = 182,
        REMOTE_PROC_DOMAIN_HAS_MANAGED_SAVE_IMAGE = 183,
        REMOTE_PROC_DOMAIN_MANAGED_SAVE_REMOVE = 184,
        REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML = 185,
        REMOTE_PROC_DOMAIN_SNAPSHOT_GET_XML_DESC = 186,
        REMOTE_PROC_DOMAIN_SNAPSHOT_NUM = 187,
        REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_NAMES = 188,
        REMOTE_PROC_DOMAIN_SNAPSHOT_LOOKUP_BY_NAME = 189,
        REMOTE_PROC_DOMAIN_HAS_CURRENT_SNAPSHOT = 190,
        REMOTE_PROC_DOMAIN_SNAPSHOT_CURRENT = 191,
        REMOTE_PROC_DOMAIN_REVERT_TO_SNAPSHOT = 192,
        REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE = 193,
        REMOTE_PROC_DOMAIN_GET_BLOCK_INFO = 194,
        REMOTE_PROC_DOMAIN_EVENT_IO_ERROR_REASON = 195,
        REMOTE_PROC_DOMAIN_CREATE_WITH_FLAGS = 196,
        REMOTE_PROC_DOMAIN_SET_MEMORY_PARAMETERS = 197,
        REMOTE_PROC_DOMAIN_GET_MEMORY_PARAMETERS = 198,
        REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS = 199,
        REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS = 200,
        REMOTE_PROC_DOMAIN_OPEN_CONSOLE = 201,
        REMOTE_PROC_DOMAIN_IS_UPDATED = 202,
        REMOTE_PROC_GET_SYSINFO = 203,
        REMOTE_PROC_DOMAIN_SET_MEMORY_FLAGS = 204,
        REMOTE_PROC_DOMAIN_SET_BLKIO_PARAMETERS = 205,
        REMOTE_PROC_DOMAIN_GET_BLKIO_PARAMETERS = 206,
        REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_SPEED = 207,
        REMOTE_PROC_STORAGE_VOL_UPLOAD = 208,
        REMOTE_PROC_STORAGE_VOL_DOWNLOAD = 209,
        REMOTE_PROC_DOMAIN_INJECT_NMI = 210,
        REMOTE_PROC_DOMAIN_SCREENSHOT = 211,
        REMOTE_PROC_DOMAIN_GET_STATE = 212,
        REMOTE_PROC_DOMAIN_MIGRATE_BEGIN3 = 213,
        REMOTE_PROC_DOMAIN_MIGRATE_PREPARE3 = 214,
        REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL3 = 215,
        REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3 = 216,
        REMOTE_PROC_DOMAIN_MIGRATE_FINISH3 = 217,
        REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3 = 218,
        REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS_FLAGS = 219,
        REMOTE_PROC_INTERFACE_CHANGE_BEGIN = 220,
        REMOTE_PROC_INTERFACE_CHANGE_COMMIT = 221,
        REMOTE_PROC_INTERFACE_CHANGE_ROLLBACK = 222,
        REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS_FLAGS = 223,
        REMOTE_PROC_DOMAIN_EVENT_CONTROL_ERROR = 224,
        REMOTE_PROC_DOMAIN_PIN_VCPU_FLAGS = 225,
        REMOTE_PROC_DOMAIN_SEND_KEY = 226,
        REMOTE_PROC_NODE_GET_CPU_STATS = 227,
        REMOTE_PROC_NODE_GET_MEMORY_STATS = 228,
        REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 229,
        REMOTE_PROC_DOMAIN_GET_VCPU_PIN_INFO = 230,
};