remote_protocol-structs 44.4 KB
Newer Older
1
/* -*- c -*- */
2
struct remote_nonnull_domain {
3 4 5
        remote_nonnull_string      name;
        remote_uuid                uuid;
        int                        id;
6 7
};
struct remote_nonnull_network {
8 9
        remote_nonnull_string      name;
        remote_uuid                uuid;
10 11
};
struct remote_nonnull_nwfilter {
12 13
        remote_nonnull_string      name;
        remote_uuid                uuid;
14 15
};
struct remote_nonnull_interface {
16 17
        remote_nonnull_string      name;
        remote_nonnull_string      mac;
18 19
};
struct remote_nonnull_storage_pool {
20 21
        remote_nonnull_string      name;
        remote_uuid                uuid;
22 23
};
struct remote_nonnull_storage_vol {
24 25 26
        remote_nonnull_string      pool;
        remote_nonnull_string      name;
        remote_nonnull_string      key;
27 28
};
struct remote_nonnull_node_device {
29
        remote_nonnull_string      name;
30 31
};
struct remote_nonnull_secret {
32 33 34
        remote_uuid                uuid;
        int                        usageType;
        remote_nonnull_string      usageID;
35 36
};
struct remote_nonnull_domain_snapshot {
37
        remote_nonnull_string      name;
38
        remote_nonnull_domain      dom;
39 40
};
struct remote_error {
41 42 43 44 45 46 47 48 49 50 51
        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;
52 53
};
struct remote_vcpu_info {
54 55 56 57
        u_int                      number;
        int                        state;
        uint64_t                   cpu_time;
        int                        cpu;
58 59
};
struct remote_sched_param_value {
60 61 62 63 64 65 66 67 68
        int                        type;
        union {
                int                i;
                u_int              ui;
                int64_t            l;
                uint64_t           ul;
                double             d;
                int                b;
        } remote_sched_param_value_u;
69 70
};
struct remote_sched_param {
71 72
        remote_nonnull_string      field;
        remote_sched_param_value   value;
73
};
74
struct remote_blkio_param_value {
75 76 77 78 79 80 81 82 83
        int                        type;
        union {
                int                i;
                u_int              ui;
                int64_t            l;
                uint64_t           ul;
                double             d;
                int                b;
        } remote_blkio_param_value_u;
84 85
};
struct remote_blkio_param {
86 87
        remote_nonnull_string      field;
        remote_blkio_param_value   value;
88
};
89
struct remote_memory_param_value {
90 91 92 93 94 95 96 97 98
        int                        type;
        union {
                int                i;
                u_int              ui;
                int64_t            l;
                uint64_t           ul;
                double             d;
                int                b;
        } remote_memory_param_value_u;
99 100
};
struct remote_memory_param {
101 102
        remote_nonnull_string      field;
        remote_memory_param_value  value;
103
};
104
struct remote_open_args {
105 106
        remote_string              name;
        int                        flags;
107 108
};
struct remote_supports_feature_args {
109
        int                        feature;
110 111
};
struct remote_supports_feature_ret {
112
        int                        supported;
113 114
};
struct remote_get_type_ret {
115
        remote_nonnull_string      type;
116 117
};
struct remote_get_version_ret {
118
        int64_t                    hv_ver;
119 120
};
struct remote_get_lib_version_ret {
121
        int64_t                    lib_ver;
122 123
};
struct remote_get_hostname_ret {
124
        remote_nonnull_string      hostname;
125
};
126
struct remote_get_sysinfo_args {
127
        u_int                      flags;
128 129
};
struct remote_get_sysinfo_ret {
130
        remote_nonnull_string      sysinfo;
131
};
132
struct remote_get_uri_ret {
133
        remote_nonnull_string      uri;
134 135
};
struct remote_get_max_vcpus_args {
136
        remote_string              type;
137 138
};
struct remote_get_max_vcpus_ret {
139
        int                        max_vcpus;
140 141
};
struct remote_node_get_info_ret {
142 143 144 145 146 147 148 149
        char                       model[32];
        int64_t                    memory;
        int                        cpus;
        int                        mhz;
        int                        nodes;
        int                        sockets;
        int                        cores;
        int                        threads;
150 151
};
struct remote_get_capabilities_ret {
152
        remote_nonnull_string      capabilities;
153 154
};
struct remote_node_get_cells_free_memory_args {
155 156
        int                        startCell;
        int                        maxCells;
157 158
};
struct remote_node_get_cells_free_memory_ret {
159 160 161 162
        struct {
                u_int              freeMems_len;
                int64_t *          freeMems_val;
        } freeMems;
163 164
};
struct remote_node_get_free_memory_ret {
165
        int64_t                    freeMem;
166 167
};
struct remote_domain_get_scheduler_type_args {
168
        remote_nonnull_domain      dom;
169 170
};
struct remote_domain_get_scheduler_type_ret {
171 172
        remote_nonnull_string      type;
        int                        nparams;
173 174
};
struct remote_domain_get_scheduler_parameters_args {
175 176
        remote_nonnull_domain      dom;
        int                        nparams;
177 178
};
struct remote_domain_get_scheduler_parameters_ret {
179 180 181 182
        struct {
                u_int              params_len;
                remote_sched_param * params_val;
        } params;
183 184
};
struct remote_domain_set_scheduler_parameters_args {
185 186 187 188 189
        remote_nonnull_domain      dom;
        struct {
                u_int              params_len;
                remote_sched_param * params_val;
        } params;
190
};
191
struct remote_domain_set_blkio_parameters_args {
192 193 194 195 196 197
        remote_nonnull_domain      dom;
        struct {
                u_int              params_len;
                remote_blkio_param * params_val;
        } params;
        u_int                      flags;
198 199
};
struct remote_domain_get_blkio_parameters_args {
200 201 202
        remote_nonnull_domain      dom;
        int                        nparams;
        u_int                      flags;
203 204
};
struct remote_domain_get_blkio_parameters_ret {
205 206 207 208 209
        struct {
                u_int              params_len;
                remote_blkio_param * params_val;
        } params;
        int                        nparams;
210
};
211
struct remote_domain_set_memory_parameters_args {
212 213 214 215 216 217
        remote_nonnull_domain      dom;
        struct {
                u_int              params_len;
                remote_memory_param * params_val;
        } params;
        u_int                      flags;
218 219
};
struct remote_domain_get_memory_parameters_args {
220 221 222
        remote_nonnull_domain      dom;
        int                        nparams;
        u_int                      flags;
223 224
};
struct remote_domain_get_memory_parameters_ret {
225 226 227 228 229
        struct {
                u_int              params_len;
                remote_memory_param * params_val;
        } params;
        int                        nparams;
230
};
231
struct remote_domain_block_stats_args {
232 233
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
234 235
};
struct remote_domain_block_stats_ret {
236 237 238 239 240
        int64_t                    rd_req;
        int64_t                    rd_bytes;
        int64_t                    wr_req;
        int64_t                    wr_bytes;
        int64_t                    errs;
241 242
};
struct remote_domain_interface_stats_args {
243 244
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
245 246
};
struct remote_domain_interface_stats_ret {
247 248 249 250 251 252 253 254
        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;
255 256
};
struct remote_domain_memory_stats_args {
257 258 259
        remote_nonnull_domain      dom;
        u_int                      maxStats;
        u_int                      flags;
260 261
};
struct remote_domain_memory_stat {
262 263
        int                        tag;
        uint64_t                   val;
264 265
};
struct remote_domain_memory_stats_ret {
266 267 268 269
        struct {
                u_int              stats_len;
                remote_domain_memory_stat * stats_val;
        } stats;
270 271
};
struct remote_domain_block_peek_args {
272 273 274 275 276
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
        uint64_t                   offset;
        u_int                      size;
        u_int                      flags;
277 278
};
struct remote_domain_block_peek_ret {
279 280 281 282
        struct {
                u_int              buffer_len;
                char *             buffer_val;
        } buffer;
283 284
};
struct remote_domain_memory_peek_args {
285 286 287 288
        remote_nonnull_domain      dom;
        uint64_t                   offset;
        u_int                      size;
        u_int                      flags;
289 290
};
struct remote_domain_memory_peek_ret {
291 292 293 294
        struct {
                u_int              buffer_len;
                char *             buffer_val;
        } buffer;
295 296
};
struct remote_domain_get_block_info_args {
297 298 299
        remote_nonnull_domain      dom;
        remote_nonnull_string      path;
        u_int                      flags;
300 301
};
struct remote_domain_get_block_info_ret {
302 303 304
        uint64_t                   allocation;
        uint64_t                   capacity;
        uint64_t                   physical;
305 306
};
struct remote_list_domains_args {
307
        int                        maxids;
308 309
};
struct remote_list_domains_ret {
310 311 312 313
        struct {
                u_int              ids_len;
                int *              ids_val;
        } ids;
314 315
};
struct remote_num_of_domains_ret {
316
        int                        num;
317 318
};
struct remote_domain_create_xml_args {
319 320
        remote_nonnull_string      xml_desc;
        int                        flags;
321 322
};
struct remote_domain_create_xml_ret {
323
        remote_nonnull_domain      dom;
324 325
};
struct remote_domain_lookup_by_id_args {
326
        int                        id;
327 328
};
struct remote_domain_lookup_by_id_ret {
329
        remote_nonnull_domain      dom;
330 331
};
struct remote_domain_lookup_by_uuid_args {
332
        remote_uuid                uuid;
333 334
};
struct remote_domain_lookup_by_uuid_ret {
335
        remote_nonnull_domain      dom;
336 337
};
struct remote_domain_lookup_by_name_args {
338
        remote_nonnull_string      name;
339 340
};
struct remote_domain_lookup_by_name_ret {
341
        remote_nonnull_domain      dom;
342 343
};
struct remote_domain_suspend_args {
344
        remote_nonnull_domain      dom;
345 346
};
struct remote_domain_resume_args {
347
        remote_nonnull_domain      dom;
348 349
};
struct remote_domain_shutdown_args {
350
        remote_nonnull_domain      dom;
351 352
};
struct remote_domain_reboot_args {
353 354
        remote_nonnull_domain      dom;
        int                        flags;
355 356
};
struct remote_domain_destroy_args {
357
        remote_nonnull_domain      dom;
358 359
};
struct remote_domain_get_os_type_args {
360
        remote_nonnull_domain      dom;
361 362
};
struct remote_domain_get_os_type_ret {
363
        remote_nonnull_string      type;
364 365
};
struct remote_domain_get_max_memory_args {
366
        remote_nonnull_domain      dom;
367 368
};
struct remote_domain_get_max_memory_ret {
369
        uint64_t                   memory;
370 371
};
struct remote_domain_set_max_memory_args {
372 373
        remote_nonnull_domain      dom;
        uint64_t                   memory;
374 375
};
struct remote_domain_set_memory_args {
376 377
        remote_nonnull_domain      dom;
        uint64_t                   memory;
378
};
379
struct remote_domain_set_memory_flags_args {
380 381 382
        remote_nonnull_domain      dom;
        uint64_t                   memory;
        u_int                      flags;
383
};
384
struct remote_domain_get_info_args {
385
        remote_nonnull_domain      dom;
386 387
};
struct remote_domain_get_info_ret {
388
        u_char                     state;
389
        uint64_t                   maxMem;
390
        uint64_t                   memory;
391 392
        u_short                    nrVirtCpu;
        uint64_t                   cpuTime;
393 394
};
struct remote_domain_save_args {
395 396
        remote_nonnull_domain      dom;
        remote_nonnull_string      to;
397 398
};
struct remote_domain_restore_args {
399
        remote_nonnull_string      from;
400 401
};
struct remote_domain_core_dump_args {
402 403 404
        remote_nonnull_domain      dom;
        remote_nonnull_string      to;
        int                        flags;
405
};
406 407
struct remote_domain_screenshot_args {
        remote_nonnull_domain      dom;
E
Eric Blake 已提交
408 409
        u_int                      screen;
        u_int                      flags;
410 411 412 413
};
struct remote_domain_screenshot_ret {
        remote_string              mime;
};
414
struct remote_domain_get_xml_desc_args {
415 416
        remote_nonnull_domain      dom;
        int                        flags;
417
};
418
struct remote_domain_get_xml_desc_ret {
419
        remote_nonnull_string      xml;
420 421
};
struct remote_domain_migrate_prepare_args {
422 423 424 425
        remote_string              uri_in;
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
426 427
};
struct remote_domain_migrate_prepare_ret {
428 429 430 431 432
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_string              uri_out;
433 434
};
struct remote_domain_migrate_perform_args {
435 436 437 438 439 440 441 442 443
        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;
444 445
};
struct remote_domain_migrate_finish_args {
446 447 448 449 450 451 452
        remote_nonnull_string      dname;
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_nonnull_string      uri;
        uint64_t                   flags;
453 454
};
struct remote_domain_migrate_finish_ret {
455
        remote_nonnull_domain      ddom;
456 457
};
struct remote_domain_migrate_prepare2_args {
458 459 460 461 462
        remote_string              uri_in;
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
        remote_nonnull_string      dom_xml;
463 464
};
struct remote_domain_migrate_prepare2_ret {
465 466 467 468 469
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_string              uri_out;
470 471
};
struct remote_domain_migrate_finish2_args {
472 473 474 475 476 477 478 479
        remote_nonnull_string      dname;
        struct {
                u_int              cookie_len;
                char *             cookie_val;
        } cookie;
        remote_nonnull_string      uri;
        uint64_t                   flags;
        int                        retcode;
480 481
};
struct remote_domain_migrate_finish2_ret {
482
        remote_nonnull_domain      ddom;
483 484
};
struct remote_list_defined_domains_args {
485
        int                        maxnames;
486 487
};
struct remote_list_defined_domains_ret {
488 489 490 491
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
492 493
};
struct remote_num_of_defined_domains_ret {
494
        int                        num;
495 496
};
struct remote_domain_create_args {
497
        remote_nonnull_domain      dom;
498 499
};
struct remote_domain_create_with_flags_args {
500 501
        remote_nonnull_domain      dom;
        u_int                      flags;
502 503
};
struct remote_domain_create_with_flags_ret {
504
        remote_nonnull_domain      dom;
505 506
};
struct remote_domain_define_xml_args {
507
        remote_nonnull_string      xml;
508 509
};
struct remote_domain_define_xml_ret {
510
        remote_nonnull_domain      dom;
511 512
};
struct remote_domain_undefine_args {
513
        remote_nonnull_domain      dom;
514
};
515 516 517 518
struct remote_domain_inject_nmi_args {
        remote_nonnull_domain      dom;
        u_int                      flags;
};
519
struct remote_domain_set_vcpus_args {
520 521
        remote_nonnull_domain      dom;
        int                        nvcpus;
522
};
E
Eric Blake 已提交
523
struct remote_domain_set_vcpus_flags_args {
524 525 526
        remote_nonnull_domain      dom;
        u_int                      nvcpus;
        u_int                      flags;
E
Eric Blake 已提交
527 528
};
struct remote_domain_get_vcpus_flags_args {
529 530
        remote_nonnull_domain      dom;
        u_int                      flags;
E
Eric Blake 已提交
531 532
};
struct remote_domain_get_vcpus_flags_ret {
533
        int                        num;
E
Eric Blake 已提交
534
};
535
struct remote_domain_pin_vcpu_args {
536 537 538 539 540 541
        remote_nonnull_domain      dom;
        int                        vcpu;
        struct {
                u_int              cpumap_len;
                char *             cpumap_val;
        } cpumap;
542 543
};
struct remote_domain_get_vcpus_args {
544 545 546
        remote_nonnull_domain      dom;
        int                        maxinfo;
        int                        maplen;
547 548
};
struct remote_domain_get_vcpus_ret {
549 550 551 552 553 554 555 556
        struct {
                u_int              info_len;
                remote_vcpu_info * info_val;
        } info;
        struct {
                u_int              cpumaps_len;
                char *             cpumaps_val;
        } cpumaps;
557 558
};
struct remote_domain_get_max_vcpus_args {
559
        remote_nonnull_domain      dom;
560 561
};
struct remote_domain_get_max_vcpus_ret {
562
        int                        num;
563 564
};
struct remote_domain_get_security_label_args {
565
        remote_nonnull_domain      dom;
566 567
};
struct remote_domain_get_security_label_ret {
568 569 570 571 572
        struct {
                u_int              label_len;
                char *             label_val;
        } label;
        int                        enforcing;
573 574
};
struct remote_node_get_security_model_ret {
575 576 577 578 579 580 581 582
        struct {
                u_int              model_len;
                char *             model_val;
        } model;
        struct {
                u_int              doi_len;
                char *             doi_val;
        } doi;
583 584
};
struct remote_domain_attach_device_args {
585 586
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
587 588
};
struct remote_domain_attach_device_flags_args {
589 590 591
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
        u_int                      flags;
592 593
};
struct remote_domain_detach_device_args {
594 595
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
596 597
};
struct remote_domain_detach_device_flags_args {
598 599 600
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
        u_int                      flags;
601 602
};
struct remote_domain_update_device_flags_args {
603 604 605
        remote_nonnull_domain      dom;
        remote_nonnull_string      xml;
        u_int                      flags;
606 607
};
struct remote_domain_get_autostart_args {
608
        remote_nonnull_domain      dom;
609 610
};
struct remote_domain_get_autostart_ret {
611
        int                        autostart;
612 613
};
struct remote_domain_set_autostart_args {
614 615
        remote_nonnull_domain      dom;
        int                        autostart;
616 617
};
struct remote_num_of_networks_ret {
618
        int                        num;
619 620
};
struct remote_list_networks_args {
621
        int                        maxnames;
622 623
};
struct remote_list_networks_ret {
624 625 626 627
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
628 629
};
struct remote_num_of_defined_networks_ret {
630
        int                        num;
631 632
};
struct remote_list_defined_networks_args {
633
        int                        maxnames;
634 635
};
struct remote_list_defined_networks_ret {
636 637 638 639
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
640 641
};
struct remote_network_lookup_by_uuid_args {
642
        remote_uuid                uuid;
643 644
};
struct remote_network_lookup_by_uuid_ret {
645
        remote_nonnull_network     net;
646 647
};
struct remote_network_lookup_by_name_args {
648
        remote_nonnull_string      name;
649 650
};
struct remote_network_lookup_by_name_ret {
651
        remote_nonnull_network     net;
652 653
};
struct remote_network_create_xml_args {
654
        remote_nonnull_string      xml;
655 656
};
struct remote_network_create_xml_ret {
657
        remote_nonnull_network     net;
658 659
};
struct remote_network_define_xml_args {
660
        remote_nonnull_string      xml;
661 662
};
struct remote_network_define_xml_ret {
663
        remote_nonnull_network     net;
664 665
};
struct remote_network_undefine_args {
666
        remote_nonnull_network     net;
667 668
};
struct remote_network_create_args {
669
        remote_nonnull_network     net;
670 671
};
struct remote_network_destroy_args {
672
        remote_nonnull_network     net;
673
};
674
struct remote_network_get_xml_desc_args {
675 676
        remote_nonnull_network     net;
        int                        flags;
677
};
678
struct remote_network_get_xml_desc_ret {
679
        remote_nonnull_string      xml;
680 681
};
struct remote_network_get_bridge_name_args {
682
        remote_nonnull_network     net;
683 684
};
struct remote_network_get_bridge_name_ret {
685
        remote_nonnull_string      name;
686 687
};
struct remote_network_get_autostart_args {
688
        remote_nonnull_network     net;
689 690
};
struct remote_network_get_autostart_ret {
691
        int                        autostart;
692 693
};
struct remote_network_set_autostart_args {
694 695
        remote_nonnull_network     net;
        int                        autostart;
696 697
};
struct remote_num_of_nwfilters_ret {
698
        int                        num;
699 700
};
struct remote_list_nwfilters_args {
701
        int                        maxnames;
702 703
};
struct remote_list_nwfilters_ret {
704 705 706 707
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
708 709
};
struct remote_nwfilter_lookup_by_uuid_args {
710
        remote_uuid                uuid;
711 712
};
struct remote_nwfilter_lookup_by_uuid_ret {
713
        remote_nonnull_nwfilter    nwfilter;
714 715
};
struct remote_nwfilter_lookup_by_name_args {
716
        remote_nonnull_string      name;
717 718
};
struct remote_nwfilter_lookup_by_name_ret {
719
        remote_nonnull_nwfilter    nwfilter;
720 721
};
struct remote_nwfilter_define_xml_args {
722
        remote_nonnull_string      xml;
723 724
};
struct remote_nwfilter_define_xml_ret {
725
        remote_nonnull_nwfilter    nwfilter;
726 727
};
struct remote_nwfilter_undefine_args {
728
        remote_nonnull_nwfilter    nwfilter;
729 730
};
struct remote_nwfilter_get_xml_desc_args {
731 732
        remote_nonnull_nwfilter    nwfilter;
        int                        flags;
733 734
};
struct remote_nwfilter_get_xml_desc_ret {
735
        remote_nonnull_string      xml;
736 737
};
struct remote_num_of_interfaces_ret {
738
        int                        num;
739 740
};
struct remote_list_interfaces_args {
741
        int                        maxnames;
742 743
};
struct remote_list_interfaces_ret {
744 745 746 747
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
748 749
};
struct remote_num_of_defined_interfaces_ret {
750
        int                        num;
751 752
};
struct remote_list_defined_interfaces_args {
753
        int                        maxnames;
754 755
};
struct remote_list_defined_interfaces_ret {
756 757 758 759
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
760 761
};
struct remote_interface_lookup_by_name_args {
762
        remote_nonnull_string      name;
763 764
};
struct remote_interface_lookup_by_name_ret {
765
        remote_nonnull_interface   iface;
766 767
};
struct remote_interface_lookup_by_mac_string_args {
768
        remote_nonnull_string      mac;
769 770
};
struct remote_interface_lookup_by_mac_string_ret {
771
        remote_nonnull_interface   iface;
772 773
};
struct remote_interface_get_xml_desc_args {
774 775
        remote_nonnull_interface   iface;
        u_int                      flags;
776 777
};
struct remote_interface_get_xml_desc_ret {
778
        remote_nonnull_string      xml;
779 780
};
struct remote_interface_define_xml_args {
781 782
        remote_nonnull_string      xml;
        u_int                      flags;
783 784
};
struct remote_interface_define_xml_ret {
785
        remote_nonnull_interface   iface;
786 787
};
struct remote_interface_undefine_args {
788
        remote_nonnull_interface   iface;
789 790
};
struct remote_interface_create_args {
791 792
        remote_nonnull_interface   iface;
        u_int                      flags;
793 794
};
struct remote_interface_destroy_args {
795 796
        remote_nonnull_interface   iface;
        u_int                      flags;
797 798
};
struct remote_auth_list_ret {
799 800 801 802
        struct {
                u_int              types_len;
                remote_auth_type * types_val;
        } types;
803 804
};
struct remote_auth_sasl_init_ret {
805
        remote_nonnull_string      mechlist;
806 807
};
struct remote_auth_sasl_start_args {
808 809 810 811 812 813
        remote_nonnull_string      mech;
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
814 815
};
struct remote_auth_sasl_start_ret {
816 817 818 819 820 821
        int                        complete;
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
822 823
};
struct remote_auth_sasl_step_args {
824 825 826 827 828
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
829 830
};
struct remote_auth_sasl_step_ret {
831 832 833 834 835 836
        int                        complete;
        int                        nil;
        struct {
                u_int              data_len;
                char *             data_val;
        } data;
837 838
};
struct remote_auth_polkit_ret {
839
        int                        complete;
840 841
};
struct remote_num_of_storage_pools_ret {
842
        int                        num;
843 844
};
struct remote_list_storage_pools_args {
845
        int                        maxnames;
846 847
};
struct remote_list_storage_pools_ret {
848 849 850 851
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
852 853
};
struct remote_num_of_defined_storage_pools_ret {
854
        int                        num;
855 856
};
struct remote_list_defined_storage_pools_args {
857
        int                        maxnames;
858 859
};
struct remote_list_defined_storage_pools_ret {
860 861 862 863
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
864 865
};
struct remote_find_storage_pool_sources_args {
866 867 868
        remote_nonnull_string      type;
        remote_string              srcSpec;
        u_int                      flags;
869 870
};
struct remote_find_storage_pool_sources_ret {
871
        remote_nonnull_string      xml;
872 873
};
struct remote_storage_pool_lookup_by_uuid_args {
874
        remote_uuid                uuid;
875 876
};
struct remote_storage_pool_lookup_by_uuid_ret {
877
        remote_nonnull_storage_pool pool;
878 879
};
struct remote_storage_pool_lookup_by_name_args {
880
        remote_nonnull_string      name;
881 882
};
struct remote_storage_pool_lookup_by_name_ret {
883
        remote_nonnull_storage_pool pool;
884 885
};
struct remote_storage_pool_lookup_by_volume_args {
886
        remote_nonnull_storage_vol vol;
887 888
};
struct remote_storage_pool_lookup_by_volume_ret {
889
        remote_nonnull_storage_pool pool;
890 891
};
struct remote_storage_pool_create_xml_args {
892 893
        remote_nonnull_string      xml;
        u_int                      flags;
894 895
};
struct remote_storage_pool_create_xml_ret {
896
        remote_nonnull_storage_pool pool;
897 898
};
struct remote_storage_pool_define_xml_args {
899 900
        remote_nonnull_string      xml;
        u_int                      flags;
901 902
};
struct remote_storage_pool_define_xml_ret {
903
        remote_nonnull_storage_pool pool;
904 905
};
struct remote_storage_pool_build_args {
906 907
        remote_nonnull_storage_pool pool;
        u_int                      flags;
908 909
};
struct remote_storage_pool_undefine_args {
910
        remote_nonnull_storage_pool pool;
911 912
};
struct remote_storage_pool_create_args {
913 914
        remote_nonnull_storage_pool pool;
        u_int                      flags;
915 916
};
struct remote_storage_pool_destroy_args {
917
        remote_nonnull_storage_pool pool;
918 919
};
struct remote_storage_pool_delete_args {
920 921
        remote_nonnull_storage_pool pool;
        u_int                      flags;
922 923
};
struct remote_storage_pool_refresh_args {
924 925
        remote_nonnull_storage_pool pool;
        u_int                      flags;
926
};
927
struct remote_storage_pool_get_xml_desc_args {
928 929
        remote_nonnull_storage_pool pool;
        u_int                      flags;
930
};
931
struct remote_storage_pool_get_xml_desc_ret {
932
        remote_nonnull_string      xml;
933 934
};
struct remote_storage_pool_get_info_args {
935
        remote_nonnull_storage_pool pool;
936 937
};
struct remote_storage_pool_get_info_ret {
938 939 940 941
        u_char                     state;
        uint64_t                   capacity;
        uint64_t                   allocation;
        uint64_t                   available;
942 943
};
struct remote_storage_pool_get_autostart_args {
944
        remote_nonnull_storage_pool pool;
945 946
};
struct remote_storage_pool_get_autostart_ret {
947
        int                        autostart;
948 949
};
struct remote_storage_pool_set_autostart_args {
950 951
        remote_nonnull_storage_pool pool;
        int                        autostart;
952 953
};
struct remote_storage_pool_num_of_volumes_args {
954
        remote_nonnull_storage_pool pool;
955 956
};
struct remote_storage_pool_num_of_volumes_ret {
957
        int                        num;
958 959
};
struct remote_storage_pool_list_volumes_args {
960 961
        remote_nonnull_storage_pool pool;
        int                        maxnames;
962 963
};
struct remote_storage_pool_list_volumes_ret {
964 965 966 967
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
968 969
};
struct remote_storage_vol_lookup_by_name_args {
970 971
        remote_nonnull_storage_pool pool;
        remote_nonnull_string      name;
972 973
};
struct remote_storage_vol_lookup_by_name_ret {
974
        remote_nonnull_storage_vol vol;
975 976
};
struct remote_storage_vol_lookup_by_key_args {
977
        remote_nonnull_string      key;
978 979
};
struct remote_storage_vol_lookup_by_key_ret {
980
        remote_nonnull_storage_vol vol;
981 982
};
struct remote_storage_vol_lookup_by_path_args {
983
        remote_nonnull_string      path;
984 985
};
struct remote_storage_vol_lookup_by_path_ret {
986
        remote_nonnull_storage_vol vol;
987 988
};
struct remote_storage_vol_create_xml_args {
989 990 991
        remote_nonnull_storage_pool pool;
        remote_nonnull_string      xml;
        u_int                      flags;
992 993
};
struct remote_storage_vol_create_xml_ret {
994
        remote_nonnull_storage_vol vol;
995 996
};
struct remote_storage_vol_create_xml_from_args {
997 998 999 1000
        remote_nonnull_storage_pool pool;
        remote_nonnull_string      xml;
        remote_nonnull_storage_vol clonevol;
        u_int                      flags;
1001 1002
};
struct remote_storage_vol_create_xml_from_ret {
1003
        remote_nonnull_storage_vol vol;
1004 1005
};
struct remote_storage_vol_delete_args {
1006 1007
        remote_nonnull_storage_vol vol;
        u_int                      flags;
1008 1009
};
struct remote_storage_vol_wipe_args {
1010 1011
        remote_nonnull_storage_vol vol;
        u_int                      flags;
1012
};
1013
struct remote_storage_vol_get_xml_desc_args {
1014 1015
        remote_nonnull_storage_vol vol;
        u_int                      flags;
1016
};
1017
struct remote_storage_vol_get_xml_desc_ret {
1018
        remote_nonnull_string      xml;
1019 1020
};
struct remote_storage_vol_get_info_args {
1021
        remote_nonnull_storage_vol vol;
1022 1023
};
struct remote_storage_vol_get_info_ret {
1024 1025 1026
        char                       type;
        uint64_t                   capacity;
        uint64_t                   allocation;
1027 1028
};
struct remote_storage_vol_get_path_args {
1029
        remote_nonnull_storage_vol vol;
1030 1031
};
struct remote_storage_vol_get_path_ret {
1032
        remote_nonnull_string      name;
1033 1034
};
struct remote_node_num_of_devices_args {
1035 1036
        remote_string              cap;
        u_int                      flags;
1037 1038
};
struct remote_node_num_of_devices_ret {
1039
        int                        num;
1040 1041
};
struct remote_node_list_devices_args {
1042 1043 1044
        remote_string              cap;
        int                        maxnames;
        u_int                      flags;
1045 1046
};
struct remote_node_list_devices_ret {
1047 1048 1049 1050
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
1051 1052
};
struct remote_node_device_lookup_by_name_args {
1053
        remote_nonnull_string      name;
1054 1055
};
struct remote_node_device_lookup_by_name_ret {
1056
        remote_nonnull_node_device dev;
1057
};
1058
struct remote_node_device_get_xml_desc_args {
1059 1060
        remote_nonnull_string      name;
        u_int                      flags;
1061
};
1062
struct remote_node_device_get_xml_desc_ret {
1063
        remote_nonnull_string      xml;
1064 1065
};
struct remote_node_device_get_parent_args {
1066
        remote_nonnull_string      name;
1067 1068
};
struct remote_node_device_get_parent_ret {
1069
        remote_string              parent;
1070 1071
};
struct remote_node_device_num_of_caps_args {
1072
        remote_nonnull_string      name;
1073 1074
};
struct remote_node_device_num_of_caps_ret {
1075
        int                        num;
1076 1077
};
struct remote_node_device_list_caps_args {
1078 1079
        remote_nonnull_string      name;
        int                        maxnames;
1080 1081
};
struct remote_node_device_list_caps_ret {
1082 1083 1084 1085
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
1086 1087
};
struct remote_node_device_dettach_args {
1088
        remote_nonnull_string      name;
1089 1090
};
struct remote_node_device_re_attach_args {
1091
        remote_nonnull_string      name;
1092 1093
};
struct remote_node_device_reset_args {
1094
        remote_nonnull_string      name;
1095 1096
};
struct remote_node_device_create_xml_args {
1097 1098
        remote_nonnull_string      xml_desc;
        int                        flags;
1099 1100
};
struct remote_node_device_create_xml_ret {
1101
        remote_nonnull_node_device dev;
1102 1103
};
struct remote_node_device_destroy_args {
1104
        remote_nonnull_string      name;
1105 1106
};
struct remote_domain_events_register_ret {
1107
        int                        cb_registered;
1108 1109
};
struct remote_domain_events_deregister_ret {
1110
        int                        cb_registered;
1111 1112
};
struct remote_domain_event_lifecycle_msg {
1113 1114 1115
        remote_nonnull_domain      dom;
        int                        event;
        int                        detail;
1116 1117
};
struct remote_domain_xml_from_native_args {
1118 1119 1120
        remote_nonnull_string      nativeFormat;
        remote_nonnull_string      nativeConfig;
        u_int                      flags;
1121 1122
};
struct remote_domain_xml_from_native_ret {
1123
        remote_nonnull_string      domainXml;
1124 1125
};
struct remote_domain_xml_to_native_args {
1126 1127 1128
        remote_nonnull_string      nativeFormat;
        remote_nonnull_string      domainXml;
        u_int                      flags;
1129 1130
};
struct remote_domain_xml_to_native_ret {
1131
        remote_nonnull_string      nativeConfig;
1132 1133
};
struct remote_num_of_secrets_ret {
1134
        int                        num;
1135 1136
};
struct remote_list_secrets_args {
1137
        int                        maxuuids;
1138 1139
};
struct remote_list_secrets_ret {
1140 1141 1142 1143
        struct {
                u_int              uuids_len;
                remote_nonnull_string * uuids_val;
        } uuids;
1144 1145
};
struct remote_secret_lookup_by_uuid_args {
1146
        remote_uuid                uuid;
1147 1148
};
struct remote_secret_lookup_by_uuid_ret {
1149
        remote_nonnull_secret      secret;
1150 1151
};
struct remote_secret_define_xml_args {
1152 1153
        remote_nonnull_string      xml;
        u_int                      flags;
1154 1155
};
struct remote_secret_define_xml_ret {
1156
        remote_nonnull_secret      secret;
1157 1158
};
struct remote_secret_get_xml_desc_args {
1159 1160
        remote_nonnull_secret      secret;
        u_int                      flags;
1161 1162
};
struct remote_secret_get_xml_desc_ret {
1163
        remote_nonnull_string      xml;
1164 1165
};
struct remote_secret_set_value_args {
1166 1167 1168 1169 1170 1171
        remote_nonnull_secret      secret;
        struct {
                u_int              value_len;
                char *             value_val;
        } value;
        u_int                      flags;
1172 1173
};
struct remote_secret_get_value_args {
1174 1175
        remote_nonnull_secret      secret;
        u_int                      flags;
1176 1177
};
struct remote_secret_get_value_ret {
1178 1179 1180 1181
        struct {
                u_int              value_len;
                char *             value_val;
        } value;
1182 1183
};
struct remote_secret_undefine_args {
1184
        remote_nonnull_secret      secret;
1185 1186
};
struct remote_secret_lookup_by_usage_args {
1187 1188
        int                        usageType;
        remote_nonnull_string      usageID;
1189 1190
};
struct remote_secret_lookup_by_usage_ret {
1191
        remote_nonnull_secret      secret;
1192 1193
};
struct remote_domain_migrate_prepare_tunnel_args {
1194 1195 1196 1197
        uint64_t                   flags;
        remote_string              dname;
        uint64_t                   resource;
        remote_nonnull_string      dom_xml;
1198 1199
};
struct remote_is_secure_ret {
1200
        int                        secure;
1201 1202
};
struct remote_domain_is_active_args {
1203
        remote_nonnull_domain      dom;
1204 1205
};
struct remote_domain_is_active_ret {
1206
        int                        active;
1207 1208
};
struct remote_domain_is_persistent_args {
1209
        remote_nonnull_domain      dom;
1210 1211
};
struct remote_domain_is_persistent_ret {
1212
        int                        persistent;
1213
};
O
Osier Yang 已提交
1214
struct remote_domain_is_updated_args {
1215
        remote_nonnull_domain      dom;
O
Osier Yang 已提交
1216 1217
};
struct remote_domain_is_updated_ret {
1218
        int                        updated;
O
Osier Yang 已提交
1219
};
1220
struct remote_network_is_active_args {
1221
        remote_nonnull_network     net;
1222 1223
};
struct remote_network_is_active_ret {
1224
        int                        active;
1225 1226
};
struct remote_network_is_persistent_args {
1227
        remote_nonnull_network     net;
1228 1229
};
struct remote_network_is_persistent_ret {
1230
        int                        persistent;
1231 1232
};
struct remote_storage_pool_is_active_args {
1233
        remote_nonnull_storage_pool pool;
1234 1235
};
struct remote_storage_pool_is_active_ret {
1236
        int                        active;
1237 1238
};
struct remote_storage_pool_is_persistent_args {
1239
        remote_nonnull_storage_pool pool;
1240 1241
};
struct remote_storage_pool_is_persistent_ret {
1242
        int                        persistent;
1243 1244
};
struct remote_interface_is_active_args {
1245
        remote_nonnull_interface   iface;
1246 1247
};
struct remote_interface_is_active_ret {
1248
        int                        active;
1249 1250
};
struct remote_cpu_compare_args {
1251 1252
        remote_nonnull_string      xml;
        u_int                      flags;
1253 1254
};
struct remote_cpu_compare_ret {
1255
        int                        result;
1256 1257
};
struct remote_cpu_baseline_args {
1258 1259 1260 1261 1262
        struct {
                u_int              xmlCPUs_len;
                remote_nonnull_string * xmlCPUs_val;
        } xmlCPUs;
        u_int                      flags;
1263 1264
};
struct remote_cpu_baseline_ret {
1265
        remote_nonnull_string      cpu;
1266 1267
};
struct remote_domain_get_job_info_args {
1268
        remote_nonnull_domain      dom;
1269 1270
};
struct remote_domain_get_job_info_ret {
1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282
        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;
1283 1284
};
struct remote_domain_abort_job_args {
1285
        remote_nonnull_domain      dom;
1286 1287
};
struct remote_domain_migrate_set_max_downtime_args {
1288 1289 1290
        remote_nonnull_domain      dom;
        uint64_t                   downtime;
        u_int                      flags;
1291
};
1292
struct remote_domain_migrate_set_max_speed_args {
1293 1294 1295
        remote_nonnull_domain      dom;
        uint64_t                   bandwidth;
        u_int                      flags;
1296
};
1297
struct remote_domain_events_register_any_args {
1298
        int                        eventID;
1299 1300
};
struct remote_domain_events_deregister_any_args {
1301
        int                        eventID;
1302 1303
};
struct remote_domain_event_reboot_msg {
1304
        remote_nonnull_domain      dom;
1305 1306
};
struct remote_domain_event_rtc_change_msg {
1307 1308
        remote_nonnull_domain      dom;
        int64_t                    offset;
1309 1310
};
struct remote_domain_event_watchdog_msg {
1311 1312
        remote_nonnull_domain      dom;
        int                        action;
1313 1314
};
struct remote_domain_event_io_error_msg {
1315 1316 1317 1318
        remote_nonnull_domain      dom;
        remote_nonnull_string      srcPath;
        remote_nonnull_string      devAlias;
        int                        action;
1319 1320
};
struct remote_domain_event_io_error_reason_msg {
1321 1322 1323 1324 1325
        remote_nonnull_domain      dom;
        remote_nonnull_string      srcPath;
        remote_nonnull_string      devAlias;
        int                        action;
        remote_nonnull_string      reason;
1326 1327
};
struct remote_domain_event_graphics_address {
1328 1329 1330
        int                        family;
        remote_nonnull_string      node;
        remote_nonnull_string      service;
1331 1332
};
struct remote_domain_event_graphics_identity {
1333 1334
        remote_nonnull_string      type;
        remote_nonnull_string      name;
1335 1336
};
struct remote_domain_event_graphics_msg {
1337 1338 1339 1340 1341 1342 1343 1344 1345
        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;
1346 1347
};
struct remote_domain_managed_save_args {
1348 1349
        remote_nonnull_domain      dom;
        u_int                      flags;
1350 1351
};
struct remote_domain_has_managed_save_image_args {
1352 1353
        remote_nonnull_domain      dom;
        u_int                      flags;
1354 1355
};
struct remote_domain_has_managed_save_image_ret {
1356
        int                        result;
1357 1358
};
struct remote_domain_managed_save_remove_args {
1359 1360
        remote_nonnull_domain      dom;
        u_int                      flags;
1361 1362
};
struct remote_domain_snapshot_create_xml_args {
1363
        remote_nonnull_domain      dom;
1364 1365
        remote_nonnull_string      xml_desc;
        int                        flags;
1366 1367
};
struct remote_domain_snapshot_create_xml_ret {
1368
        remote_nonnull_domain_snapshot snap;
1369
};
1370
struct remote_domain_snapshot_get_xml_desc_args {
1371 1372
        remote_nonnull_domain_snapshot snap;
        int                        flags;
1373
};
1374
struct remote_domain_snapshot_get_xml_desc_ret {
1375
        remote_nonnull_string      xml;
1376 1377
};
struct remote_domain_snapshot_num_args {
1378
        remote_nonnull_domain      dom;
1379
        int                        flags;
1380 1381
};
struct remote_domain_snapshot_num_ret {
1382
        int                        num;
1383 1384
};
struct remote_domain_snapshot_list_names_args {
1385
        remote_nonnull_domain      dom;
1386
        int                        maxnames;
1387
        int                        flags;
1388 1389
};
struct remote_domain_snapshot_list_names_ret {
1390 1391 1392 1393
        struct {
                u_int              names_len;
                remote_nonnull_string * names_val;
        } names;
1394 1395
};
struct remote_domain_snapshot_lookup_by_name_args {
1396
        remote_nonnull_domain      dom;
1397 1398
        remote_nonnull_string      name;
        int                        flags;
1399 1400
};
struct remote_domain_snapshot_lookup_by_name_ret {
1401
        remote_nonnull_domain_snapshot snap;
1402 1403
};
struct remote_domain_has_current_snapshot_args {
1404
        remote_nonnull_domain      dom;
1405
        int                        flags;
1406 1407
};
struct remote_domain_has_current_snapshot_ret {
1408
        int                        result;
1409 1410
};
struct remote_domain_snapshot_current_args {
1411
        remote_nonnull_domain      dom;
1412
        int                        flags;
1413 1414
};
struct remote_domain_snapshot_current_ret {
1415
        remote_nonnull_domain_snapshot snap;
1416 1417
};
struct remote_domain_revert_to_snapshot_args {
1418 1419
        remote_nonnull_domain_snapshot snap;
        int                        flags;
1420 1421
};
struct remote_domain_snapshot_delete_args {
1422 1423
        remote_nonnull_domain_snapshot snap;
        int                        flags;
1424
};
1425
struct remote_domain_open_console_args {
1426
        remote_nonnull_domain      dom;
1427 1428
        remote_string              devname;
        u_int                      flags;
1429
};
1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441
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;
};
1442
struct remote_message_header {
1443 1444 1445 1446 1447 1448
        u_int                      prog;
        u_int                      vers;
        int                        proc;
        remote_message_type        type;
        u_int                      serial;
        remote_message_status      status;
1449
};