1/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
2
3/*
4 * deallocation functions for schema-defined QAPI types
5 *
6 * Copyright IBM, Corp. 2011
7 *
8 * Authors:
9 *  Anthony Liguori   <aliguori@us.ibm.com>
10 *  Michael Roth      <mdroth@linux.vnet.ibm.com>
11 *
12 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
13 * See the COPYING.LIB file in the top-level directory.
14 *
15 */
16
17#include "qapi/dealloc-visitor.h"
18#include "qapi-types.h"
19#include "qapi-visit.h"
20
21const char *ErrorClass_lookup[] = {
22    "GenericError",
23    "CommandNotFound",
24    "DeviceEncrypted",
25    "DeviceNotActive",
26    "DeviceNotFound",
27    "KVMMissingCap",
28    NULL,
29};
30
31const char *RunState_lookup[] = {
32    "debug",
33    "inmigrate",
34    "internal-error",
35    "io-error",
36    "paused",
37    "postmigrate",
38    "prelaunch",
39    "finish-migrate",
40    "restore-vm",
41    "running",
42    "save-vm",
43    "shutdown",
44    "suspended",
45    "watchdog",
46    "guest-panicked",
47    NULL,
48};
49
50const char *ImageInfoSpecificKind_lookup[] = {
51    "qcow2",
52    "vmdk",
53    NULL,
54};
55
56const char *DataFormat_lookup[] = {
57    "utf8",
58    "base64",
59    NULL,
60};
61
62const char *MigrationCapability_lookup[] = {
63    "xbzrle",
64    "x-rdma-pin-all",
65    "auto-converge",
66    "zero-blocks",
67    NULL,
68};
69
70const char *BlockDeviceIoStatus_lookup[] = {
71    "ok",
72    "failed",
73    "nospace",
74    NULL,
75};
76
77const char *SpiceQueryMouseMode_lookup[] = {
78    "client",
79    "server",
80    "unknown",
81    NULL,
82};
83
84const char *BlockdevOnError_lookup[] = {
85    "report",
86    "ignore",
87    "enospc",
88    "stop",
89    NULL,
90};
91
92const char *MirrorSyncMode_lookup[] = {
93    "top",
94    "full",
95    "none",
96    NULL,
97};
98
99const char *BlockJobType_lookup[] = {
100    "commit",
101    "stream",
102    "mirror",
103    "backup",
104    NULL,
105};
106
107const char *NewImageMode_lookup[] = {
108    "existing",
109    "absolute-paths",
110    NULL,
111};
112
113const char *TransactionActionKind_lookup[] = {
114    "blockdev-snapshot-sync",
115    "drive-backup",
116    "abort",
117    "blockdev-snapshot-internal-sync",
118    NULL,
119};
120
121const char *NetClientOptionsKind_lookup[] = {
122    "none",
123    "nic",
124    "user",
125    "tap",
126    "socket",
127    "vde",
128    "dump",
129    "bridge",
130    "hubport",
131    "netmap",
132    NULL,
133};
134
135const char *SocketAddressKind_lookup[] = {
136    "inet",
137    "unix",
138    "fd",
139    NULL,
140};
141
142const char *QKeyCode_lookup[] = {
143    "shift",
144    "shift_r",
145    "alt",
146    "alt_r",
147    "altgr",
148    "altgr_r",
149    "ctrl",
150    "ctrl_r",
151    "menu",
152    "esc",
153    "1",
154    "2",
155    "3",
156    "4",
157    "5",
158    "6",
159    "7",
160    "8",
161    "9",
162    "0",
163    "minus",
164    "equal",
165    "backspace",
166    "tab",
167    "q",
168    "w",
169    "e",
170    "r",
171    "t",
172    "y",
173    "u",
174    "i",
175    "o",
176    "p",
177    "bracket_left",
178    "bracket_right",
179    "ret",
180    "a",
181    "s",
182    "d",
183    "f",
184    "g",
185    "h",
186    "j",
187    "k",
188    "l",
189    "semicolon",
190    "apostrophe",
191    "grave_accent",
192    "backslash",
193    "z",
194    "x",
195    "c",
196    "v",
197    "b",
198    "n",
199    "m",
200    "comma",
201    "dot",
202    "slash",
203    "asterisk",
204    "spc",
205    "caps_lock",
206    "f1",
207    "f2",
208    "f3",
209    "f4",
210    "f5",
211    "f6",
212    "f7",
213    "f8",
214    "f9",
215    "f10",
216    "num_lock",
217    "scroll_lock",
218    "kp_divide",
219    "kp_multiply",
220    "kp_subtract",
221    "kp_add",
222    "kp_enter",
223    "kp_decimal",
224    "sysrq",
225    "kp_0",
226    "kp_1",
227    "kp_2",
228    "kp_3",
229    "kp_4",
230    "kp_5",
231    "kp_6",
232    "kp_7",
233    "kp_8",
234    "kp_9",
235    "less",
236    "f11",
237    "f12",
238    "print",
239    "home",
240    "pgup",
241    "pgdn",
242    "end",
243    "left",
244    "up",
245    "down",
246    "right",
247    "insert",
248    "delete",
249    "stop",
250    "again",
251    "props",
252    "undo",
253    "front",
254    "copy",
255    "open",
256    "paste",
257    "find",
258    "cut",
259    "lf",
260    "help",
261    "meta_l",
262    "meta_r",
263    "compose",
264    NULL,
265};
266
267const char *KeyValueKind_lookup[] = {
268    "number",
269    "qcode",
270    NULL,
271};
272
273const char *ChardevBackendKind_lookup[] = {
274    "file",
275    "serial",
276    "parallel",
277    "pipe",
278    "socket",
279    "udp",
280    "pty",
281    "null",
282    "mux",
283    "msmouse",
284    "braille",
285    "stdio",
286    "console",
287    "spicevmc",
288    "spiceport",
289    "vc",
290    "ringbuf",
291    "memory",
292    NULL,
293};
294
295const char *TpmModel_lookup[] = {
296    "tpm-tis",
297    NULL,
298};
299
300const char *TpmType_lookup[] = {
301    "passthrough",
302    NULL,
303};
304
305const char *TpmTypeOptionsKind_lookup[] = {
306    "passthrough",
307    NULL,
308};
309
310const char *CommandLineParameterType_lookup[] = {
311    "string",
312    "boolean",
313    "number",
314    "size",
315    NULL,
316};
317
318const char *X86CPURegister32_lookup[] = {
319    "EAX",
320    "EBX",
321    "ECX",
322    "EDX",
323    "ESP",
324    "EBP",
325    "ESI",
326    "EDI",
327    NULL,
328};
329
330const char *RxState_lookup[] = {
331    "normal",
332    "none",
333    "all",
334    NULL,
335};
336
337const char *BlockdevDiscardOptions_lookup[] = {
338    "ignore",
339    "unmap",
340    NULL,
341};
342
343const char *BlockdevAioOptions_lookup[] = {
344    "threads",
345    "native",
346    NULL,
347};
348
349const char *BlockdevOptionsKind_lookup[] = {
350    "file",
351    "http",
352    "https",
353    "ftp",
354    "ftps",
355    "tftp",
356    "vvfat",
357    "bochs",
358    "cloop",
359    "cow",
360    "dmg",
361    "parallels",
362    "qcow",
363    "qcow2",
364    "qed",
365    "raw",
366    "vdi",
367    "vhdx",
368    "vmdk",
369    "vpc",
370    NULL,
371};
372
373const char *BlockdevRefKind_lookup[] = {
374    "definition",
375    "reference",
376    NULL,
377};
378
379const int BlockdevRef_qtypes[QTYPE_MAX] = {
380    [ QTYPE_QDICT ] = BLOCKDEV_REF_KIND_DEFINITION,
381    [ QTYPE_QSTRING ] = BLOCKDEV_REF_KIND_REFERENCE,
382};
383
384#ifndef QAPI_TYPES_BUILTIN_CLEANUP_DEF_H
385#define QAPI_TYPES_BUILTIN_CLEANUP_DEF_H
386
387
388void qapi_free_strList(strList * obj)
389{
390    QapiDeallocVisitor *md;
391    Visitor *v;
392
393    if (!obj) {
394        return;
395    }
396
397    md = qapi_dealloc_visitor_new();
398    v = qapi_dealloc_get_visitor(md);
399    visit_type_strList(v, &obj, NULL, NULL);
400    qapi_dealloc_visitor_cleanup(md);
401}
402
403void qapi_free_intList(intList * obj)
404{
405    QapiDeallocVisitor *md;
406    Visitor *v;
407
408    if (!obj) {
409        return;
410    }
411
412    md = qapi_dealloc_visitor_new();
413    v = qapi_dealloc_get_visitor(md);
414    visit_type_intList(v, &obj, NULL, NULL);
415    qapi_dealloc_visitor_cleanup(md);
416}
417
418void qapi_free_numberList(numberList * obj)
419{
420    QapiDeallocVisitor *md;
421    Visitor *v;
422
423    if (!obj) {
424        return;
425    }
426
427    md = qapi_dealloc_visitor_new();
428    v = qapi_dealloc_get_visitor(md);
429    visit_type_numberList(v, &obj, NULL, NULL);
430    qapi_dealloc_visitor_cleanup(md);
431}
432
433void qapi_free_boolList(boolList * obj)
434{
435    QapiDeallocVisitor *md;
436    Visitor *v;
437
438    if (!obj) {
439        return;
440    }
441
442    md = qapi_dealloc_visitor_new();
443    v = qapi_dealloc_get_visitor(md);
444    visit_type_boolList(v, &obj, NULL, NULL);
445    qapi_dealloc_visitor_cleanup(md);
446}
447
448void qapi_free_int8List(int8List * obj)
449{
450    QapiDeallocVisitor *md;
451    Visitor *v;
452
453    if (!obj) {
454        return;
455    }
456
457    md = qapi_dealloc_visitor_new();
458    v = qapi_dealloc_get_visitor(md);
459    visit_type_int8List(v, &obj, NULL, NULL);
460    qapi_dealloc_visitor_cleanup(md);
461}
462
463void qapi_free_int16List(int16List * obj)
464{
465    QapiDeallocVisitor *md;
466    Visitor *v;
467
468    if (!obj) {
469        return;
470    }
471
472    md = qapi_dealloc_visitor_new();
473    v = qapi_dealloc_get_visitor(md);
474    visit_type_int16List(v, &obj, NULL, NULL);
475    qapi_dealloc_visitor_cleanup(md);
476}
477
478void qapi_free_int32List(int32List * obj)
479{
480    QapiDeallocVisitor *md;
481    Visitor *v;
482
483    if (!obj) {
484        return;
485    }
486
487    md = qapi_dealloc_visitor_new();
488    v = qapi_dealloc_get_visitor(md);
489    visit_type_int32List(v, &obj, NULL, NULL);
490    qapi_dealloc_visitor_cleanup(md);
491}
492
493void qapi_free_int64List(int64List * obj)
494{
495    QapiDeallocVisitor *md;
496    Visitor *v;
497
498    if (!obj) {
499        return;
500    }
501
502    md = qapi_dealloc_visitor_new();
503    v = qapi_dealloc_get_visitor(md);
504    visit_type_int64List(v, &obj, NULL, NULL);
505    qapi_dealloc_visitor_cleanup(md);
506}
507
508void qapi_free_uint8List(uint8List * obj)
509{
510    QapiDeallocVisitor *md;
511    Visitor *v;
512
513    if (!obj) {
514        return;
515    }
516
517    md = qapi_dealloc_visitor_new();
518    v = qapi_dealloc_get_visitor(md);
519    visit_type_uint8List(v, &obj, NULL, NULL);
520    qapi_dealloc_visitor_cleanup(md);
521}
522
523void qapi_free_uint16List(uint16List * obj)
524{
525    QapiDeallocVisitor *md;
526    Visitor *v;
527
528    if (!obj) {
529        return;
530    }
531
532    md = qapi_dealloc_visitor_new();
533    v = qapi_dealloc_get_visitor(md);
534    visit_type_uint16List(v, &obj, NULL, NULL);
535    qapi_dealloc_visitor_cleanup(md);
536}
537
538void qapi_free_uint32List(uint32List * obj)
539{
540    QapiDeallocVisitor *md;
541    Visitor *v;
542
543    if (!obj) {
544        return;
545    }
546
547    md = qapi_dealloc_visitor_new();
548    v = qapi_dealloc_get_visitor(md);
549    visit_type_uint32List(v, &obj, NULL, NULL);
550    qapi_dealloc_visitor_cleanup(md);
551}
552
553void qapi_free_uint64List(uint64List * obj)
554{
555    QapiDeallocVisitor *md;
556    Visitor *v;
557
558    if (!obj) {
559        return;
560    }
561
562    md = qapi_dealloc_visitor_new();
563    v = qapi_dealloc_get_visitor(md);
564    visit_type_uint64List(v, &obj, NULL, NULL);
565    qapi_dealloc_visitor_cleanup(md);
566}
567
568#endif /* QAPI_TYPES_BUILTIN_CLEANUP_DEF_H */
569
570
571void qapi_free_ErrorClassList(ErrorClassList * obj)
572{
573    QapiDeallocVisitor *md;
574    Visitor *v;
575
576    if (!obj) {
577        return;
578    }
579
580    md = qapi_dealloc_visitor_new();
581    v = qapi_dealloc_get_visitor(md);
582    visit_type_ErrorClassList(v, &obj, NULL, NULL);
583    qapi_dealloc_visitor_cleanup(md);
584}
585
586
587void qapi_free_NameInfoList(NameInfoList * obj)
588{
589    QapiDeallocVisitor *md;
590    Visitor *v;
591
592    if (!obj) {
593        return;
594    }
595
596    md = qapi_dealloc_visitor_new();
597    v = qapi_dealloc_get_visitor(md);
598    visit_type_NameInfoList(v, &obj, NULL, NULL);
599    qapi_dealloc_visitor_cleanup(md);
600}
601
602
603void qapi_free_NameInfo(NameInfo * obj)
604{
605    QapiDeallocVisitor *md;
606    Visitor *v;
607
608    if (!obj) {
609        return;
610    }
611
612    md = qapi_dealloc_visitor_new();
613    v = qapi_dealloc_get_visitor(md);
614    visit_type_NameInfo(v, &obj, NULL, NULL);
615    qapi_dealloc_visitor_cleanup(md);
616}
617
618
619void qapi_free_VersionInfoList(VersionInfoList * obj)
620{
621    QapiDeallocVisitor *md;
622    Visitor *v;
623
624    if (!obj) {
625        return;
626    }
627
628    md = qapi_dealloc_visitor_new();
629    v = qapi_dealloc_get_visitor(md);
630    visit_type_VersionInfoList(v, &obj, NULL, NULL);
631    qapi_dealloc_visitor_cleanup(md);
632}
633
634
635void qapi_free_VersionInfo(VersionInfo * obj)
636{
637    QapiDeallocVisitor *md;
638    Visitor *v;
639
640    if (!obj) {
641        return;
642    }
643
644    md = qapi_dealloc_visitor_new();
645    v = qapi_dealloc_get_visitor(md);
646    visit_type_VersionInfo(v, &obj, NULL, NULL);
647    qapi_dealloc_visitor_cleanup(md);
648}
649
650
651void qapi_free_KvmInfoList(KvmInfoList * obj)
652{
653    QapiDeallocVisitor *md;
654    Visitor *v;
655
656    if (!obj) {
657        return;
658    }
659
660    md = qapi_dealloc_visitor_new();
661    v = qapi_dealloc_get_visitor(md);
662    visit_type_KvmInfoList(v, &obj, NULL, NULL);
663    qapi_dealloc_visitor_cleanup(md);
664}
665
666
667void qapi_free_KvmInfo(KvmInfo * obj)
668{
669    QapiDeallocVisitor *md;
670    Visitor *v;
671
672    if (!obj) {
673        return;
674    }
675
676    md = qapi_dealloc_visitor_new();
677    v = qapi_dealloc_get_visitor(md);
678    visit_type_KvmInfo(v, &obj, NULL, NULL);
679    qapi_dealloc_visitor_cleanup(md);
680}
681
682
683void qapi_free_RunStateList(RunStateList * obj)
684{
685    QapiDeallocVisitor *md;
686    Visitor *v;
687
688    if (!obj) {
689        return;
690    }
691
692    md = qapi_dealloc_visitor_new();
693    v = qapi_dealloc_get_visitor(md);
694    visit_type_RunStateList(v, &obj, NULL, NULL);
695    qapi_dealloc_visitor_cleanup(md);
696}
697
698
699void qapi_free_SnapshotInfoList(SnapshotInfoList * obj)
700{
701    QapiDeallocVisitor *md;
702    Visitor *v;
703
704    if (!obj) {
705        return;
706    }
707
708    md = qapi_dealloc_visitor_new();
709    v = qapi_dealloc_get_visitor(md);
710    visit_type_SnapshotInfoList(v, &obj, NULL, NULL);
711    qapi_dealloc_visitor_cleanup(md);
712}
713
714
715void qapi_free_SnapshotInfo(SnapshotInfo * obj)
716{
717    QapiDeallocVisitor *md;
718    Visitor *v;
719
720    if (!obj) {
721        return;
722    }
723
724    md = qapi_dealloc_visitor_new();
725    v = qapi_dealloc_get_visitor(md);
726    visit_type_SnapshotInfo(v, &obj, NULL, NULL);
727    qapi_dealloc_visitor_cleanup(md);
728}
729
730
731void qapi_free_ImageInfoSpecificQCow2List(ImageInfoSpecificQCow2List * obj)
732{
733    QapiDeallocVisitor *md;
734    Visitor *v;
735
736    if (!obj) {
737        return;
738    }
739
740    md = qapi_dealloc_visitor_new();
741    v = qapi_dealloc_get_visitor(md);
742    visit_type_ImageInfoSpecificQCow2List(v, &obj, NULL, NULL);
743    qapi_dealloc_visitor_cleanup(md);
744}
745
746
747void qapi_free_ImageInfoSpecificQCow2(ImageInfoSpecificQCow2 * obj)
748{
749    QapiDeallocVisitor *md;
750    Visitor *v;
751
752    if (!obj) {
753        return;
754    }
755
756    md = qapi_dealloc_visitor_new();
757    v = qapi_dealloc_get_visitor(md);
758    visit_type_ImageInfoSpecificQCow2(v, &obj, NULL, NULL);
759    qapi_dealloc_visitor_cleanup(md);
760}
761
762
763void qapi_free_ImageInfoSpecificVmdkList(ImageInfoSpecificVmdkList * obj)
764{
765    QapiDeallocVisitor *md;
766    Visitor *v;
767
768    if (!obj) {
769        return;
770    }
771
772    md = qapi_dealloc_visitor_new();
773    v = qapi_dealloc_get_visitor(md);
774    visit_type_ImageInfoSpecificVmdkList(v, &obj, NULL, NULL);
775    qapi_dealloc_visitor_cleanup(md);
776}
777
778
779void qapi_free_ImageInfoSpecificVmdk(ImageInfoSpecificVmdk * obj)
780{
781    QapiDeallocVisitor *md;
782    Visitor *v;
783
784    if (!obj) {
785        return;
786    }
787
788    md = qapi_dealloc_visitor_new();
789    v = qapi_dealloc_get_visitor(md);
790    visit_type_ImageInfoSpecificVmdk(v, &obj, NULL, NULL);
791    qapi_dealloc_visitor_cleanup(md);
792}
793
794
795void qapi_free_ImageInfoSpecificList(ImageInfoSpecificList * obj)
796{
797    QapiDeallocVisitor *md;
798    Visitor *v;
799
800    if (!obj) {
801        return;
802    }
803
804    md = qapi_dealloc_visitor_new();
805    v = qapi_dealloc_get_visitor(md);
806    visit_type_ImageInfoSpecificList(v, &obj, NULL, NULL);
807    qapi_dealloc_visitor_cleanup(md);
808}
809
810
811void qapi_free_ImageInfoSpecific(ImageInfoSpecific * obj)
812{
813    QapiDeallocVisitor *md;
814    Visitor *v;
815
816    if (!obj) {
817        return;
818    }
819
820    md = qapi_dealloc_visitor_new();
821    v = qapi_dealloc_get_visitor(md);
822    visit_type_ImageInfoSpecific(v, &obj, NULL, NULL);
823    qapi_dealloc_visitor_cleanup(md);
824}
825
826
827void qapi_free_ImageInfoList(ImageInfoList * obj)
828{
829    QapiDeallocVisitor *md;
830    Visitor *v;
831
832    if (!obj) {
833        return;
834    }
835
836    md = qapi_dealloc_visitor_new();
837    v = qapi_dealloc_get_visitor(md);
838    visit_type_ImageInfoList(v, &obj, NULL, NULL);
839    qapi_dealloc_visitor_cleanup(md);
840}
841
842
843void qapi_free_ImageInfo(ImageInfo * obj)
844{
845    QapiDeallocVisitor *md;
846    Visitor *v;
847
848    if (!obj) {
849        return;
850    }
851
852    md = qapi_dealloc_visitor_new();
853    v = qapi_dealloc_get_visitor(md);
854    visit_type_ImageInfo(v, &obj, NULL, NULL);
855    qapi_dealloc_visitor_cleanup(md);
856}
857
858
859void qapi_free_ImageCheckList(ImageCheckList * obj)
860{
861    QapiDeallocVisitor *md;
862    Visitor *v;
863
864    if (!obj) {
865        return;
866    }
867
868    md = qapi_dealloc_visitor_new();
869    v = qapi_dealloc_get_visitor(md);
870    visit_type_ImageCheckList(v, &obj, NULL, NULL);
871    qapi_dealloc_visitor_cleanup(md);
872}
873
874
875void qapi_free_ImageCheck(ImageCheck * obj)
876{
877    QapiDeallocVisitor *md;
878    Visitor *v;
879
880    if (!obj) {
881        return;
882    }
883
884    md = qapi_dealloc_visitor_new();
885    v = qapi_dealloc_get_visitor(md);
886    visit_type_ImageCheck(v, &obj, NULL, NULL);
887    qapi_dealloc_visitor_cleanup(md);
888}
889
890
891void qapi_free_StatusInfoList(StatusInfoList * obj)
892{
893    QapiDeallocVisitor *md;
894    Visitor *v;
895
896    if (!obj) {
897        return;
898    }
899
900    md = qapi_dealloc_visitor_new();
901    v = qapi_dealloc_get_visitor(md);
902    visit_type_StatusInfoList(v, &obj, NULL, NULL);
903    qapi_dealloc_visitor_cleanup(md);
904}
905
906
907void qapi_free_StatusInfo(StatusInfo * obj)
908{
909    QapiDeallocVisitor *md;
910    Visitor *v;
911
912    if (!obj) {
913        return;
914    }
915
916    md = qapi_dealloc_visitor_new();
917    v = qapi_dealloc_get_visitor(md);
918    visit_type_StatusInfo(v, &obj, NULL, NULL);
919    qapi_dealloc_visitor_cleanup(md);
920}
921
922
923void qapi_free_UuidInfoList(UuidInfoList * obj)
924{
925    QapiDeallocVisitor *md;
926    Visitor *v;
927
928    if (!obj) {
929        return;
930    }
931
932    md = qapi_dealloc_visitor_new();
933    v = qapi_dealloc_get_visitor(md);
934    visit_type_UuidInfoList(v, &obj, NULL, NULL);
935    qapi_dealloc_visitor_cleanup(md);
936}
937
938
939void qapi_free_UuidInfo(UuidInfo * obj)
940{
941    QapiDeallocVisitor *md;
942    Visitor *v;
943
944    if (!obj) {
945        return;
946    }
947
948    md = qapi_dealloc_visitor_new();
949    v = qapi_dealloc_get_visitor(md);
950    visit_type_UuidInfo(v, &obj, NULL, NULL);
951    qapi_dealloc_visitor_cleanup(md);
952}
953
954
955void qapi_free_ChardevInfoList(ChardevInfoList * obj)
956{
957    QapiDeallocVisitor *md;
958    Visitor *v;
959
960    if (!obj) {
961        return;
962    }
963
964    md = qapi_dealloc_visitor_new();
965    v = qapi_dealloc_get_visitor(md);
966    visit_type_ChardevInfoList(v, &obj, NULL, NULL);
967    qapi_dealloc_visitor_cleanup(md);
968}
969
970
971void qapi_free_ChardevInfo(ChardevInfo * obj)
972{
973    QapiDeallocVisitor *md;
974    Visitor *v;
975
976    if (!obj) {
977        return;
978    }
979
980    md = qapi_dealloc_visitor_new();
981    v = qapi_dealloc_get_visitor(md);
982    visit_type_ChardevInfo(v, &obj, NULL, NULL);
983    qapi_dealloc_visitor_cleanup(md);
984}
985
986
987void qapi_free_DataFormatList(DataFormatList * obj)
988{
989    QapiDeallocVisitor *md;
990    Visitor *v;
991
992    if (!obj) {
993        return;
994    }
995
996    md = qapi_dealloc_visitor_new();
997    v = qapi_dealloc_get_visitor(md);
998    visit_type_DataFormatList(v, &obj, NULL, NULL);
999    qapi_dealloc_visitor_cleanup(md);
1000}
1001
1002
1003void qapi_free_CommandInfoList(CommandInfoList * obj)
1004{
1005    QapiDeallocVisitor *md;
1006    Visitor *v;
1007
1008    if (!obj) {
1009        return;
1010    }
1011
1012    md = qapi_dealloc_visitor_new();
1013    v = qapi_dealloc_get_visitor(md);
1014    visit_type_CommandInfoList(v, &obj, NULL, NULL);
1015    qapi_dealloc_visitor_cleanup(md);
1016}
1017
1018
1019void qapi_free_CommandInfo(CommandInfo * obj)
1020{
1021    QapiDeallocVisitor *md;
1022    Visitor *v;
1023
1024    if (!obj) {
1025        return;
1026    }
1027
1028    md = qapi_dealloc_visitor_new();
1029    v = qapi_dealloc_get_visitor(md);
1030    visit_type_CommandInfo(v, &obj, NULL, NULL);
1031    qapi_dealloc_visitor_cleanup(md);
1032}
1033
1034
1035void qapi_free_EventInfoList(EventInfoList * obj)
1036{
1037    QapiDeallocVisitor *md;
1038    Visitor *v;
1039
1040    if (!obj) {
1041        return;
1042    }
1043
1044    md = qapi_dealloc_visitor_new();
1045    v = qapi_dealloc_get_visitor(md);
1046    visit_type_EventInfoList(v, &obj, NULL, NULL);
1047    qapi_dealloc_visitor_cleanup(md);
1048}
1049
1050
1051void qapi_free_EventInfo(EventInfo * obj)
1052{
1053    QapiDeallocVisitor *md;
1054    Visitor *v;
1055
1056    if (!obj) {
1057        return;
1058    }
1059
1060    md = qapi_dealloc_visitor_new();
1061    v = qapi_dealloc_get_visitor(md);
1062    visit_type_EventInfo(v, &obj, NULL, NULL);
1063    qapi_dealloc_visitor_cleanup(md);
1064}
1065
1066
1067void qapi_free_MigrationStatsList(MigrationStatsList * obj)
1068{
1069    QapiDeallocVisitor *md;
1070    Visitor *v;
1071
1072    if (!obj) {
1073        return;
1074    }
1075
1076    md = qapi_dealloc_visitor_new();
1077    v = qapi_dealloc_get_visitor(md);
1078    visit_type_MigrationStatsList(v, &obj, NULL, NULL);
1079    qapi_dealloc_visitor_cleanup(md);
1080}
1081
1082
1083void qapi_free_MigrationStats(MigrationStats * obj)
1084{
1085    QapiDeallocVisitor *md;
1086    Visitor *v;
1087
1088    if (!obj) {
1089        return;
1090    }
1091
1092    md = qapi_dealloc_visitor_new();
1093    v = qapi_dealloc_get_visitor(md);
1094    visit_type_MigrationStats(v, &obj, NULL, NULL);
1095    qapi_dealloc_visitor_cleanup(md);
1096}
1097
1098
1099void qapi_free_XBZRLECacheStatsList(XBZRLECacheStatsList * obj)
1100{
1101    QapiDeallocVisitor *md;
1102    Visitor *v;
1103
1104    if (!obj) {
1105        return;
1106    }
1107
1108    md = qapi_dealloc_visitor_new();
1109    v = qapi_dealloc_get_visitor(md);
1110    visit_type_XBZRLECacheStatsList(v, &obj, NULL, NULL);
1111    qapi_dealloc_visitor_cleanup(md);
1112}
1113
1114
1115void qapi_free_XBZRLECacheStats(XBZRLECacheStats * obj)
1116{
1117    QapiDeallocVisitor *md;
1118    Visitor *v;
1119
1120    if (!obj) {
1121        return;
1122    }
1123
1124    md = qapi_dealloc_visitor_new();
1125    v = qapi_dealloc_get_visitor(md);
1126    visit_type_XBZRLECacheStats(v, &obj, NULL, NULL);
1127    qapi_dealloc_visitor_cleanup(md);
1128}
1129
1130
1131void qapi_free_MigrationInfoList(MigrationInfoList * obj)
1132{
1133    QapiDeallocVisitor *md;
1134    Visitor *v;
1135
1136    if (!obj) {
1137        return;
1138    }
1139
1140    md = qapi_dealloc_visitor_new();
1141    v = qapi_dealloc_get_visitor(md);
1142    visit_type_MigrationInfoList(v, &obj, NULL, NULL);
1143    qapi_dealloc_visitor_cleanup(md);
1144}
1145
1146
1147void qapi_free_MigrationInfo(MigrationInfo * obj)
1148{
1149    QapiDeallocVisitor *md;
1150    Visitor *v;
1151
1152    if (!obj) {
1153        return;
1154    }
1155
1156    md = qapi_dealloc_visitor_new();
1157    v = qapi_dealloc_get_visitor(md);
1158    visit_type_MigrationInfo(v, &obj, NULL, NULL);
1159    qapi_dealloc_visitor_cleanup(md);
1160}
1161
1162
1163void qapi_free_MigrationCapabilityList(MigrationCapabilityList * obj)
1164{
1165    QapiDeallocVisitor *md;
1166    Visitor *v;
1167
1168    if (!obj) {
1169        return;
1170    }
1171
1172    md = qapi_dealloc_visitor_new();
1173    v = qapi_dealloc_get_visitor(md);
1174    visit_type_MigrationCapabilityList(v, &obj, NULL, NULL);
1175    qapi_dealloc_visitor_cleanup(md);
1176}
1177
1178
1179void qapi_free_MigrationCapabilityStatusList(MigrationCapabilityStatusList * obj)
1180{
1181    QapiDeallocVisitor *md;
1182    Visitor *v;
1183
1184    if (!obj) {
1185        return;
1186    }
1187
1188    md = qapi_dealloc_visitor_new();
1189    v = qapi_dealloc_get_visitor(md);
1190    visit_type_MigrationCapabilityStatusList(v, &obj, NULL, NULL);
1191    qapi_dealloc_visitor_cleanup(md);
1192}
1193
1194
1195void qapi_free_MigrationCapabilityStatus(MigrationCapabilityStatus * obj)
1196{
1197    QapiDeallocVisitor *md;
1198    Visitor *v;
1199
1200    if (!obj) {
1201        return;
1202    }
1203
1204    md = qapi_dealloc_visitor_new();
1205    v = qapi_dealloc_get_visitor(md);
1206    visit_type_MigrationCapabilityStatus(v, &obj, NULL, NULL);
1207    qapi_dealloc_visitor_cleanup(md);
1208}
1209
1210
1211void qapi_free_MouseInfoList(MouseInfoList * obj)
1212{
1213    QapiDeallocVisitor *md;
1214    Visitor *v;
1215
1216    if (!obj) {
1217        return;
1218    }
1219
1220    md = qapi_dealloc_visitor_new();
1221    v = qapi_dealloc_get_visitor(md);
1222    visit_type_MouseInfoList(v, &obj, NULL, NULL);
1223    qapi_dealloc_visitor_cleanup(md);
1224}
1225
1226
1227void qapi_free_MouseInfo(MouseInfo * obj)
1228{
1229    QapiDeallocVisitor *md;
1230    Visitor *v;
1231
1232    if (!obj) {
1233        return;
1234    }
1235
1236    md = qapi_dealloc_visitor_new();
1237    v = qapi_dealloc_get_visitor(md);
1238    visit_type_MouseInfo(v, &obj, NULL, NULL);
1239    qapi_dealloc_visitor_cleanup(md);
1240}
1241
1242
1243void qapi_free_CpuInfoList(CpuInfoList * obj)
1244{
1245    QapiDeallocVisitor *md;
1246    Visitor *v;
1247
1248    if (!obj) {
1249        return;
1250    }
1251
1252    md = qapi_dealloc_visitor_new();
1253    v = qapi_dealloc_get_visitor(md);
1254    visit_type_CpuInfoList(v, &obj, NULL, NULL);
1255    qapi_dealloc_visitor_cleanup(md);
1256}
1257
1258
1259void qapi_free_CpuInfo(CpuInfo * obj)
1260{
1261    QapiDeallocVisitor *md;
1262    Visitor *v;
1263
1264    if (!obj) {
1265        return;
1266    }
1267
1268    md = qapi_dealloc_visitor_new();
1269    v = qapi_dealloc_get_visitor(md);
1270    visit_type_CpuInfo(v, &obj, NULL, NULL);
1271    qapi_dealloc_visitor_cleanup(md);
1272}
1273
1274
1275void qapi_free_BlockDeviceInfoList(BlockDeviceInfoList * obj)
1276{
1277    QapiDeallocVisitor *md;
1278    Visitor *v;
1279
1280    if (!obj) {
1281        return;
1282    }
1283
1284    md = qapi_dealloc_visitor_new();
1285    v = qapi_dealloc_get_visitor(md);
1286    visit_type_BlockDeviceInfoList(v, &obj, NULL, NULL);
1287    qapi_dealloc_visitor_cleanup(md);
1288}
1289
1290
1291void qapi_free_BlockDeviceInfo(BlockDeviceInfo * obj)
1292{
1293    QapiDeallocVisitor *md;
1294    Visitor *v;
1295
1296    if (!obj) {
1297        return;
1298    }
1299
1300    md = qapi_dealloc_visitor_new();
1301    v = qapi_dealloc_get_visitor(md);
1302    visit_type_BlockDeviceInfo(v, &obj, NULL, NULL);
1303    qapi_dealloc_visitor_cleanup(md);
1304}
1305
1306
1307void qapi_free_BlockDeviceIoStatusList(BlockDeviceIoStatusList * obj)
1308{
1309    QapiDeallocVisitor *md;
1310    Visitor *v;
1311
1312    if (!obj) {
1313        return;
1314    }
1315
1316    md = qapi_dealloc_visitor_new();
1317    v = qapi_dealloc_get_visitor(md);
1318    visit_type_BlockDeviceIoStatusList(v, &obj, NULL, NULL);
1319    qapi_dealloc_visitor_cleanup(md);
1320}
1321
1322
1323void qapi_free_BlockDeviceMapEntryList(BlockDeviceMapEntryList * obj)
1324{
1325    QapiDeallocVisitor *md;
1326    Visitor *v;
1327
1328    if (!obj) {
1329        return;
1330    }
1331
1332    md = qapi_dealloc_visitor_new();
1333    v = qapi_dealloc_get_visitor(md);
1334    visit_type_BlockDeviceMapEntryList(v, &obj, NULL, NULL);
1335    qapi_dealloc_visitor_cleanup(md);
1336}
1337
1338
1339void qapi_free_BlockDeviceMapEntry(BlockDeviceMapEntry * obj)
1340{
1341    QapiDeallocVisitor *md;
1342    Visitor *v;
1343
1344    if (!obj) {
1345        return;
1346    }
1347
1348    md = qapi_dealloc_visitor_new();
1349    v = qapi_dealloc_get_visitor(md);
1350    visit_type_BlockDeviceMapEntry(v, &obj, NULL, NULL);
1351    qapi_dealloc_visitor_cleanup(md);
1352}
1353
1354
1355void qapi_free_BlockDirtyInfoList(BlockDirtyInfoList * obj)
1356{
1357    QapiDeallocVisitor *md;
1358    Visitor *v;
1359
1360    if (!obj) {
1361        return;
1362    }
1363
1364    md = qapi_dealloc_visitor_new();
1365    v = qapi_dealloc_get_visitor(md);
1366    visit_type_BlockDirtyInfoList(v, &obj, NULL, NULL);
1367    qapi_dealloc_visitor_cleanup(md);
1368}
1369
1370
1371void qapi_free_BlockDirtyInfo(BlockDirtyInfo * obj)
1372{
1373    QapiDeallocVisitor *md;
1374    Visitor *v;
1375
1376    if (!obj) {
1377        return;
1378    }
1379
1380    md = qapi_dealloc_visitor_new();
1381    v = qapi_dealloc_get_visitor(md);
1382    visit_type_BlockDirtyInfo(v, &obj, NULL, NULL);
1383    qapi_dealloc_visitor_cleanup(md);
1384}
1385
1386
1387void qapi_free_BlockInfoList(BlockInfoList * obj)
1388{
1389    QapiDeallocVisitor *md;
1390    Visitor *v;
1391
1392    if (!obj) {
1393        return;
1394    }
1395
1396    md = qapi_dealloc_visitor_new();
1397    v = qapi_dealloc_get_visitor(md);
1398    visit_type_BlockInfoList(v, &obj, NULL, NULL);
1399    qapi_dealloc_visitor_cleanup(md);
1400}
1401
1402
1403void qapi_free_BlockInfo(BlockInfo * obj)
1404{
1405    QapiDeallocVisitor *md;
1406    Visitor *v;
1407
1408    if (!obj) {
1409        return;
1410    }
1411
1412    md = qapi_dealloc_visitor_new();
1413    v = qapi_dealloc_get_visitor(md);
1414    visit_type_BlockInfo(v, &obj, NULL, NULL);
1415    qapi_dealloc_visitor_cleanup(md);
1416}
1417
1418
1419void qapi_free_BlockDeviceStatsList(BlockDeviceStatsList * obj)
1420{
1421    QapiDeallocVisitor *md;
1422    Visitor *v;
1423
1424    if (!obj) {
1425        return;
1426    }
1427
1428    md = qapi_dealloc_visitor_new();
1429    v = qapi_dealloc_get_visitor(md);
1430    visit_type_BlockDeviceStatsList(v, &obj, NULL, NULL);
1431    qapi_dealloc_visitor_cleanup(md);
1432}
1433
1434
1435void qapi_free_BlockDeviceStats(BlockDeviceStats * obj)
1436{
1437    QapiDeallocVisitor *md;
1438    Visitor *v;
1439
1440    if (!obj) {
1441        return;
1442    }
1443
1444    md = qapi_dealloc_visitor_new();
1445    v = qapi_dealloc_get_visitor(md);
1446    visit_type_BlockDeviceStats(v, &obj, NULL, NULL);
1447    qapi_dealloc_visitor_cleanup(md);
1448}
1449
1450
1451void qapi_free_BlockStatsList(BlockStatsList * obj)
1452{
1453    QapiDeallocVisitor *md;
1454    Visitor *v;
1455
1456    if (!obj) {
1457        return;
1458    }
1459
1460    md = qapi_dealloc_visitor_new();
1461    v = qapi_dealloc_get_visitor(md);
1462    visit_type_BlockStatsList(v, &obj, NULL, NULL);
1463    qapi_dealloc_visitor_cleanup(md);
1464}
1465
1466
1467void qapi_free_BlockStats(BlockStats * obj)
1468{
1469    QapiDeallocVisitor *md;
1470    Visitor *v;
1471
1472    if (!obj) {
1473        return;
1474    }
1475
1476    md = qapi_dealloc_visitor_new();
1477    v = qapi_dealloc_get_visitor(md);
1478    visit_type_BlockStats(v, &obj, NULL, NULL);
1479    qapi_dealloc_visitor_cleanup(md);
1480}
1481
1482
1483void qapi_free_VncClientInfoList(VncClientInfoList * obj)
1484{
1485    QapiDeallocVisitor *md;
1486    Visitor *v;
1487
1488    if (!obj) {
1489        return;
1490    }
1491
1492    md = qapi_dealloc_visitor_new();
1493    v = qapi_dealloc_get_visitor(md);
1494    visit_type_VncClientInfoList(v, &obj, NULL, NULL);
1495    qapi_dealloc_visitor_cleanup(md);
1496}
1497
1498
1499void qapi_free_VncClientInfo(VncClientInfo * obj)
1500{
1501    QapiDeallocVisitor *md;
1502    Visitor *v;
1503
1504    if (!obj) {
1505        return;
1506    }
1507
1508    md = qapi_dealloc_visitor_new();
1509    v = qapi_dealloc_get_visitor(md);
1510    visit_type_VncClientInfo(v, &obj, NULL, NULL);
1511    qapi_dealloc_visitor_cleanup(md);
1512}
1513
1514
1515void qapi_free_VncInfoList(VncInfoList * obj)
1516{
1517    QapiDeallocVisitor *md;
1518    Visitor *v;
1519
1520    if (!obj) {
1521        return;
1522    }
1523
1524    md = qapi_dealloc_visitor_new();
1525    v = qapi_dealloc_get_visitor(md);
1526    visit_type_VncInfoList(v, &obj, NULL, NULL);
1527    qapi_dealloc_visitor_cleanup(md);
1528}
1529
1530
1531void qapi_free_VncInfo(VncInfo * obj)
1532{
1533    QapiDeallocVisitor *md;
1534    Visitor *v;
1535
1536    if (!obj) {
1537        return;
1538    }
1539
1540    md = qapi_dealloc_visitor_new();
1541    v = qapi_dealloc_get_visitor(md);
1542    visit_type_VncInfo(v, &obj, NULL, NULL);
1543    qapi_dealloc_visitor_cleanup(md);
1544}
1545
1546
1547void qapi_free_SpiceChannelList(SpiceChannelList * obj)
1548{
1549    QapiDeallocVisitor *md;
1550    Visitor *v;
1551
1552    if (!obj) {
1553        return;
1554    }
1555
1556    md = qapi_dealloc_visitor_new();
1557    v = qapi_dealloc_get_visitor(md);
1558    visit_type_SpiceChannelList(v, &obj, NULL, NULL);
1559    qapi_dealloc_visitor_cleanup(md);
1560}
1561
1562
1563void qapi_free_SpiceChannel(SpiceChannel * obj)
1564{
1565    QapiDeallocVisitor *md;
1566    Visitor *v;
1567
1568    if (!obj) {
1569        return;
1570    }
1571
1572    md = qapi_dealloc_visitor_new();
1573    v = qapi_dealloc_get_visitor(md);
1574    visit_type_SpiceChannel(v, &obj, NULL, NULL);
1575    qapi_dealloc_visitor_cleanup(md);
1576}
1577
1578
1579void qapi_free_SpiceQueryMouseModeList(SpiceQueryMouseModeList * obj)
1580{
1581    QapiDeallocVisitor *md;
1582    Visitor *v;
1583
1584    if (!obj) {
1585        return;
1586    }
1587
1588    md = qapi_dealloc_visitor_new();
1589    v = qapi_dealloc_get_visitor(md);
1590    visit_type_SpiceQueryMouseModeList(v, &obj, NULL, NULL);
1591    qapi_dealloc_visitor_cleanup(md);
1592}
1593
1594
1595void qapi_free_SpiceInfoList(SpiceInfoList * obj)
1596{
1597    QapiDeallocVisitor *md;
1598    Visitor *v;
1599
1600    if (!obj) {
1601        return;
1602    }
1603
1604    md = qapi_dealloc_visitor_new();
1605    v = qapi_dealloc_get_visitor(md);
1606    visit_type_SpiceInfoList(v, &obj, NULL, NULL);
1607    qapi_dealloc_visitor_cleanup(md);
1608}
1609
1610
1611void qapi_free_SpiceInfo(SpiceInfo * obj)
1612{
1613    QapiDeallocVisitor *md;
1614    Visitor *v;
1615
1616    if (!obj) {
1617        return;
1618    }
1619
1620    md = qapi_dealloc_visitor_new();
1621    v = qapi_dealloc_get_visitor(md);
1622    visit_type_SpiceInfo(v, &obj, NULL, NULL);
1623    qapi_dealloc_visitor_cleanup(md);
1624}
1625
1626
1627void qapi_free_BalloonInfoList(BalloonInfoList * obj)
1628{
1629    QapiDeallocVisitor *md;
1630    Visitor *v;
1631
1632    if (!obj) {
1633        return;
1634    }
1635
1636    md = qapi_dealloc_visitor_new();
1637    v = qapi_dealloc_get_visitor(md);
1638    visit_type_BalloonInfoList(v, &obj, NULL, NULL);
1639    qapi_dealloc_visitor_cleanup(md);
1640}
1641
1642
1643void qapi_free_BalloonInfo(BalloonInfo * obj)
1644{
1645    QapiDeallocVisitor *md;
1646    Visitor *v;
1647
1648    if (!obj) {
1649        return;
1650    }
1651
1652    md = qapi_dealloc_visitor_new();
1653    v = qapi_dealloc_get_visitor(md);
1654    visit_type_BalloonInfo(v, &obj, NULL, NULL);
1655    qapi_dealloc_visitor_cleanup(md);
1656}
1657
1658
1659void qapi_free_PciMemoryRangeList(PciMemoryRangeList * obj)
1660{
1661    QapiDeallocVisitor *md;
1662    Visitor *v;
1663
1664    if (!obj) {
1665        return;
1666    }
1667
1668    md = qapi_dealloc_visitor_new();
1669    v = qapi_dealloc_get_visitor(md);
1670    visit_type_PciMemoryRangeList(v, &obj, NULL, NULL);
1671    qapi_dealloc_visitor_cleanup(md);
1672}
1673
1674
1675void qapi_free_PciMemoryRange(PciMemoryRange * obj)
1676{
1677    QapiDeallocVisitor *md;
1678    Visitor *v;
1679
1680    if (!obj) {
1681        return;
1682    }
1683
1684    md = qapi_dealloc_visitor_new();
1685    v = qapi_dealloc_get_visitor(md);
1686    visit_type_PciMemoryRange(v, &obj, NULL, NULL);
1687    qapi_dealloc_visitor_cleanup(md);
1688}
1689
1690
1691void qapi_free_PciMemoryRegionList(PciMemoryRegionList * obj)
1692{
1693    QapiDeallocVisitor *md;
1694    Visitor *v;
1695
1696    if (!obj) {
1697        return;
1698    }
1699
1700    md = qapi_dealloc_visitor_new();
1701    v = qapi_dealloc_get_visitor(md);
1702    visit_type_PciMemoryRegionList(v, &obj, NULL, NULL);
1703    qapi_dealloc_visitor_cleanup(md);
1704}
1705
1706
1707void qapi_free_PciMemoryRegion(PciMemoryRegion * obj)
1708{
1709    QapiDeallocVisitor *md;
1710    Visitor *v;
1711
1712    if (!obj) {
1713        return;
1714    }
1715
1716    md = qapi_dealloc_visitor_new();
1717    v = qapi_dealloc_get_visitor(md);
1718    visit_type_PciMemoryRegion(v, &obj, NULL, NULL);
1719    qapi_dealloc_visitor_cleanup(md);
1720}
1721
1722
1723void qapi_free_PciBridgeInfoList(PciBridgeInfoList * obj)
1724{
1725    QapiDeallocVisitor *md;
1726    Visitor *v;
1727
1728    if (!obj) {
1729        return;
1730    }
1731
1732    md = qapi_dealloc_visitor_new();
1733    v = qapi_dealloc_get_visitor(md);
1734    visit_type_PciBridgeInfoList(v, &obj, NULL, NULL);
1735    qapi_dealloc_visitor_cleanup(md);
1736}
1737
1738
1739void qapi_free_PciBridgeInfo(PciBridgeInfo * obj)
1740{
1741    QapiDeallocVisitor *md;
1742    Visitor *v;
1743
1744    if (!obj) {
1745        return;
1746    }
1747
1748    md = qapi_dealloc_visitor_new();
1749    v = qapi_dealloc_get_visitor(md);
1750    visit_type_PciBridgeInfo(v, &obj, NULL, NULL);
1751    qapi_dealloc_visitor_cleanup(md);
1752}
1753
1754
1755void qapi_free_PciDeviceInfoList(PciDeviceInfoList * obj)
1756{
1757    QapiDeallocVisitor *md;
1758    Visitor *v;
1759
1760    if (!obj) {
1761        return;
1762    }
1763
1764    md = qapi_dealloc_visitor_new();
1765    v = qapi_dealloc_get_visitor(md);
1766    visit_type_PciDeviceInfoList(v, &obj, NULL, NULL);
1767    qapi_dealloc_visitor_cleanup(md);
1768}
1769
1770
1771void qapi_free_PciDeviceInfo(PciDeviceInfo * obj)
1772{
1773    QapiDeallocVisitor *md;
1774    Visitor *v;
1775
1776    if (!obj) {
1777        return;
1778    }
1779
1780    md = qapi_dealloc_visitor_new();
1781    v = qapi_dealloc_get_visitor(md);
1782    visit_type_PciDeviceInfo(v, &obj, NULL, NULL);
1783    qapi_dealloc_visitor_cleanup(md);
1784}
1785
1786
1787void qapi_free_PciInfoList(PciInfoList * obj)
1788{
1789    QapiDeallocVisitor *md;
1790    Visitor *v;
1791
1792    if (!obj) {
1793        return;
1794    }
1795
1796    md = qapi_dealloc_visitor_new();
1797    v = qapi_dealloc_get_visitor(md);
1798    visit_type_PciInfoList(v, &obj, NULL, NULL);
1799    qapi_dealloc_visitor_cleanup(md);
1800}
1801
1802
1803void qapi_free_PciInfo(PciInfo * obj)
1804{
1805    QapiDeallocVisitor *md;
1806    Visitor *v;
1807
1808    if (!obj) {
1809        return;
1810    }
1811
1812    md = qapi_dealloc_visitor_new();
1813    v = qapi_dealloc_get_visitor(md);
1814    visit_type_PciInfo(v, &obj, NULL, NULL);
1815    qapi_dealloc_visitor_cleanup(md);
1816}
1817
1818
1819void qapi_free_BlockdevOnErrorList(BlockdevOnErrorList * obj)
1820{
1821    QapiDeallocVisitor *md;
1822    Visitor *v;
1823
1824    if (!obj) {
1825        return;
1826    }
1827
1828    md = qapi_dealloc_visitor_new();
1829    v = qapi_dealloc_get_visitor(md);
1830    visit_type_BlockdevOnErrorList(v, &obj, NULL, NULL);
1831    qapi_dealloc_visitor_cleanup(md);
1832}
1833
1834
1835void qapi_free_MirrorSyncModeList(MirrorSyncModeList * obj)
1836{
1837    QapiDeallocVisitor *md;
1838    Visitor *v;
1839
1840    if (!obj) {
1841        return;
1842    }
1843
1844    md = qapi_dealloc_visitor_new();
1845    v = qapi_dealloc_get_visitor(md);
1846    visit_type_MirrorSyncModeList(v, &obj, NULL, NULL);
1847    qapi_dealloc_visitor_cleanup(md);
1848}
1849
1850
1851void qapi_free_BlockJobTypeList(BlockJobTypeList * obj)
1852{
1853    QapiDeallocVisitor *md;
1854    Visitor *v;
1855
1856    if (!obj) {
1857        return;
1858    }
1859
1860    md = qapi_dealloc_visitor_new();
1861    v = qapi_dealloc_get_visitor(md);
1862    visit_type_BlockJobTypeList(v, &obj, NULL, NULL);
1863    qapi_dealloc_visitor_cleanup(md);
1864}
1865
1866
1867void qapi_free_BlockJobInfoList(BlockJobInfoList * obj)
1868{
1869    QapiDeallocVisitor *md;
1870    Visitor *v;
1871
1872    if (!obj) {
1873        return;
1874    }
1875
1876    md = qapi_dealloc_visitor_new();
1877    v = qapi_dealloc_get_visitor(md);
1878    visit_type_BlockJobInfoList(v, &obj, NULL, NULL);
1879    qapi_dealloc_visitor_cleanup(md);
1880}
1881
1882
1883void qapi_free_BlockJobInfo(BlockJobInfo * obj)
1884{
1885    QapiDeallocVisitor *md;
1886    Visitor *v;
1887
1888    if (!obj) {
1889        return;
1890    }
1891
1892    md = qapi_dealloc_visitor_new();
1893    v = qapi_dealloc_get_visitor(md);
1894    visit_type_BlockJobInfo(v, &obj, NULL, NULL);
1895    qapi_dealloc_visitor_cleanup(md);
1896}
1897
1898
1899void qapi_free_NewImageModeList(NewImageModeList * obj)
1900{
1901    QapiDeallocVisitor *md;
1902    Visitor *v;
1903
1904    if (!obj) {
1905        return;
1906    }
1907
1908    md = qapi_dealloc_visitor_new();
1909    v = qapi_dealloc_get_visitor(md);
1910    visit_type_NewImageModeList(v, &obj, NULL, NULL);
1911    qapi_dealloc_visitor_cleanup(md);
1912}
1913
1914
1915void qapi_free_BlockdevSnapshotList(BlockdevSnapshotList * obj)
1916{
1917    QapiDeallocVisitor *md;
1918    Visitor *v;
1919
1920    if (!obj) {
1921        return;
1922    }
1923
1924    md = qapi_dealloc_visitor_new();
1925    v = qapi_dealloc_get_visitor(md);
1926    visit_type_BlockdevSnapshotList(v, &obj, NULL, NULL);
1927    qapi_dealloc_visitor_cleanup(md);
1928}
1929
1930
1931void qapi_free_BlockdevSnapshot(BlockdevSnapshot * obj)
1932{
1933    QapiDeallocVisitor *md;
1934    Visitor *v;
1935
1936    if (!obj) {
1937        return;
1938    }
1939
1940    md = qapi_dealloc_visitor_new();
1941    v = qapi_dealloc_get_visitor(md);
1942    visit_type_BlockdevSnapshot(v, &obj, NULL, NULL);
1943    qapi_dealloc_visitor_cleanup(md);
1944}
1945
1946
1947void qapi_free_BlockdevSnapshotInternalList(BlockdevSnapshotInternalList * obj)
1948{
1949    QapiDeallocVisitor *md;
1950    Visitor *v;
1951
1952    if (!obj) {
1953        return;
1954    }
1955
1956    md = qapi_dealloc_visitor_new();
1957    v = qapi_dealloc_get_visitor(md);
1958    visit_type_BlockdevSnapshotInternalList(v, &obj, NULL, NULL);
1959    qapi_dealloc_visitor_cleanup(md);
1960}
1961
1962
1963void qapi_free_BlockdevSnapshotInternal(BlockdevSnapshotInternal * obj)
1964{
1965    QapiDeallocVisitor *md;
1966    Visitor *v;
1967
1968    if (!obj) {
1969        return;
1970    }
1971
1972    md = qapi_dealloc_visitor_new();
1973    v = qapi_dealloc_get_visitor(md);
1974    visit_type_BlockdevSnapshotInternal(v, &obj, NULL, NULL);
1975    qapi_dealloc_visitor_cleanup(md);
1976}
1977
1978
1979void qapi_free_DriveBackupList(DriveBackupList * obj)
1980{
1981    QapiDeallocVisitor *md;
1982    Visitor *v;
1983
1984    if (!obj) {
1985        return;
1986    }
1987
1988    md = qapi_dealloc_visitor_new();
1989    v = qapi_dealloc_get_visitor(md);
1990    visit_type_DriveBackupList(v, &obj, NULL, NULL);
1991    qapi_dealloc_visitor_cleanup(md);
1992}
1993
1994
1995void qapi_free_DriveBackup(DriveBackup * obj)
1996{
1997    QapiDeallocVisitor *md;
1998    Visitor *v;
1999
2000    if (!obj) {
2001        return;
2002    }
2003
2004    md = qapi_dealloc_visitor_new();
2005    v = qapi_dealloc_get_visitor(md);
2006    visit_type_DriveBackup(v, &obj, NULL, NULL);
2007    qapi_dealloc_visitor_cleanup(md);
2008}
2009
2010
2011void qapi_free_AbortList(AbortList * obj)
2012{
2013    QapiDeallocVisitor *md;
2014    Visitor *v;
2015
2016    if (!obj) {
2017        return;
2018    }
2019
2020    md = qapi_dealloc_visitor_new();
2021    v = qapi_dealloc_get_visitor(md);
2022    visit_type_AbortList(v, &obj, NULL, NULL);
2023    qapi_dealloc_visitor_cleanup(md);
2024}
2025
2026
2027void qapi_free_Abort(Abort * obj)
2028{
2029    QapiDeallocVisitor *md;
2030    Visitor *v;
2031
2032    if (!obj) {
2033        return;
2034    }
2035
2036    md = qapi_dealloc_visitor_new();
2037    v = qapi_dealloc_get_visitor(md);
2038    visit_type_Abort(v, &obj, NULL, NULL);
2039    qapi_dealloc_visitor_cleanup(md);
2040}
2041
2042
2043void qapi_free_TransactionActionList(TransactionActionList * obj)
2044{
2045    QapiDeallocVisitor *md;
2046    Visitor *v;
2047
2048    if (!obj) {
2049        return;
2050    }
2051
2052    md = qapi_dealloc_visitor_new();
2053    v = qapi_dealloc_get_visitor(md);
2054    visit_type_TransactionActionList(v, &obj, NULL, NULL);
2055    qapi_dealloc_visitor_cleanup(md);
2056}
2057
2058
2059void qapi_free_TransactionAction(TransactionAction * obj)
2060{
2061    QapiDeallocVisitor *md;
2062    Visitor *v;
2063
2064    if (!obj) {
2065        return;
2066    }
2067
2068    md = qapi_dealloc_visitor_new();
2069    v = qapi_dealloc_get_visitor(md);
2070    visit_type_TransactionAction(v, &obj, NULL, NULL);
2071    qapi_dealloc_visitor_cleanup(md);
2072}
2073
2074
2075void qapi_free_ObjectPropertyInfoList(ObjectPropertyInfoList * obj)
2076{
2077    QapiDeallocVisitor *md;
2078    Visitor *v;
2079
2080    if (!obj) {
2081        return;
2082    }
2083
2084    md = qapi_dealloc_visitor_new();
2085    v = qapi_dealloc_get_visitor(md);
2086    visit_type_ObjectPropertyInfoList(v, &obj, NULL, NULL);
2087    qapi_dealloc_visitor_cleanup(md);
2088}
2089
2090
2091void qapi_free_ObjectPropertyInfo(ObjectPropertyInfo * obj)
2092{
2093    QapiDeallocVisitor *md;
2094    Visitor *v;
2095
2096    if (!obj) {
2097        return;
2098    }
2099
2100    md = qapi_dealloc_visitor_new();
2101    v = qapi_dealloc_get_visitor(md);
2102    visit_type_ObjectPropertyInfo(v, &obj, NULL, NULL);
2103    qapi_dealloc_visitor_cleanup(md);
2104}
2105
2106
2107void qapi_free_ObjectTypeInfoList(ObjectTypeInfoList * obj)
2108{
2109    QapiDeallocVisitor *md;
2110    Visitor *v;
2111
2112    if (!obj) {
2113        return;
2114    }
2115
2116    md = qapi_dealloc_visitor_new();
2117    v = qapi_dealloc_get_visitor(md);
2118    visit_type_ObjectTypeInfoList(v, &obj, NULL, NULL);
2119    qapi_dealloc_visitor_cleanup(md);
2120}
2121
2122
2123void qapi_free_ObjectTypeInfo(ObjectTypeInfo * obj)
2124{
2125    QapiDeallocVisitor *md;
2126    Visitor *v;
2127
2128    if (!obj) {
2129        return;
2130    }
2131
2132    md = qapi_dealloc_visitor_new();
2133    v = qapi_dealloc_get_visitor(md);
2134    visit_type_ObjectTypeInfo(v, &obj, NULL, NULL);
2135    qapi_dealloc_visitor_cleanup(md);
2136}
2137
2138
2139void qapi_free_DevicePropertyInfoList(DevicePropertyInfoList * obj)
2140{
2141    QapiDeallocVisitor *md;
2142    Visitor *v;
2143
2144    if (!obj) {
2145        return;
2146    }
2147
2148    md = qapi_dealloc_visitor_new();
2149    v = qapi_dealloc_get_visitor(md);
2150    visit_type_DevicePropertyInfoList(v, &obj, NULL, NULL);
2151    qapi_dealloc_visitor_cleanup(md);
2152}
2153
2154
2155void qapi_free_DevicePropertyInfo(DevicePropertyInfo * obj)
2156{
2157    QapiDeallocVisitor *md;
2158    Visitor *v;
2159
2160    if (!obj) {
2161        return;
2162    }
2163
2164    md = qapi_dealloc_visitor_new();
2165    v = qapi_dealloc_get_visitor(md);
2166    visit_type_DevicePropertyInfo(v, &obj, NULL, NULL);
2167    qapi_dealloc_visitor_cleanup(md);
2168}
2169
2170
2171void qapi_free_NetdevNoneOptionsList(NetdevNoneOptionsList * obj)
2172{
2173    QapiDeallocVisitor *md;
2174    Visitor *v;
2175
2176    if (!obj) {
2177        return;
2178    }
2179
2180    md = qapi_dealloc_visitor_new();
2181    v = qapi_dealloc_get_visitor(md);
2182    visit_type_NetdevNoneOptionsList(v, &obj, NULL, NULL);
2183    qapi_dealloc_visitor_cleanup(md);
2184}
2185
2186
2187void qapi_free_NetdevNoneOptions(NetdevNoneOptions * obj)
2188{
2189    QapiDeallocVisitor *md;
2190    Visitor *v;
2191
2192    if (!obj) {
2193        return;
2194    }
2195
2196    md = qapi_dealloc_visitor_new();
2197    v = qapi_dealloc_get_visitor(md);
2198    visit_type_NetdevNoneOptions(v, &obj, NULL, NULL);
2199    qapi_dealloc_visitor_cleanup(md);
2200}
2201
2202
2203void qapi_free_NetLegacyNicOptionsList(NetLegacyNicOptionsList * obj)
2204{
2205    QapiDeallocVisitor *md;
2206    Visitor *v;
2207
2208    if (!obj) {
2209        return;
2210    }
2211
2212    md = qapi_dealloc_visitor_new();
2213    v = qapi_dealloc_get_visitor(md);
2214    visit_type_NetLegacyNicOptionsList(v, &obj, NULL, NULL);
2215    qapi_dealloc_visitor_cleanup(md);
2216}
2217
2218
2219void qapi_free_NetLegacyNicOptions(NetLegacyNicOptions * obj)
2220{
2221    QapiDeallocVisitor *md;
2222    Visitor *v;
2223
2224    if (!obj) {
2225        return;
2226    }
2227
2228    md = qapi_dealloc_visitor_new();
2229    v = qapi_dealloc_get_visitor(md);
2230    visit_type_NetLegacyNicOptions(v, &obj, NULL, NULL);
2231    qapi_dealloc_visitor_cleanup(md);
2232}
2233
2234
2235void qapi_free_StringList(StringList * obj)
2236{
2237    QapiDeallocVisitor *md;
2238    Visitor *v;
2239
2240    if (!obj) {
2241        return;
2242    }
2243
2244    md = qapi_dealloc_visitor_new();
2245    v = qapi_dealloc_get_visitor(md);
2246    visit_type_StringList(v, &obj, NULL, NULL);
2247    qapi_dealloc_visitor_cleanup(md);
2248}
2249
2250
2251void qapi_free_String(String * obj)
2252{
2253    QapiDeallocVisitor *md;
2254    Visitor *v;
2255
2256    if (!obj) {
2257        return;
2258    }
2259
2260    md = qapi_dealloc_visitor_new();
2261    v = qapi_dealloc_get_visitor(md);
2262    visit_type_String(v, &obj, NULL, NULL);
2263    qapi_dealloc_visitor_cleanup(md);
2264}
2265
2266
2267void qapi_free_NetdevUserOptionsList(NetdevUserOptionsList * obj)
2268{
2269    QapiDeallocVisitor *md;
2270    Visitor *v;
2271
2272    if (!obj) {
2273        return;
2274    }
2275
2276    md = qapi_dealloc_visitor_new();
2277    v = qapi_dealloc_get_visitor(md);
2278    visit_type_NetdevUserOptionsList(v, &obj, NULL, NULL);
2279    qapi_dealloc_visitor_cleanup(md);
2280}
2281
2282
2283void qapi_free_NetdevUserOptions(NetdevUserOptions * obj)
2284{
2285    QapiDeallocVisitor *md;
2286    Visitor *v;
2287
2288    if (!obj) {
2289        return;
2290    }
2291
2292    md = qapi_dealloc_visitor_new();
2293    v = qapi_dealloc_get_visitor(md);
2294    visit_type_NetdevUserOptions(v, &obj, NULL, NULL);
2295    qapi_dealloc_visitor_cleanup(md);
2296}
2297
2298
2299void qapi_free_NetdevTapOptionsList(NetdevTapOptionsList * obj)
2300{
2301    QapiDeallocVisitor *md;
2302    Visitor *v;
2303
2304    if (!obj) {
2305        return;
2306    }
2307
2308    md = qapi_dealloc_visitor_new();
2309    v = qapi_dealloc_get_visitor(md);
2310    visit_type_NetdevTapOptionsList(v, &obj, NULL, NULL);
2311    qapi_dealloc_visitor_cleanup(md);
2312}
2313
2314
2315void qapi_free_NetdevTapOptions(NetdevTapOptions * obj)
2316{
2317    QapiDeallocVisitor *md;
2318    Visitor *v;
2319
2320    if (!obj) {
2321        return;
2322    }
2323
2324    md = qapi_dealloc_visitor_new();
2325    v = qapi_dealloc_get_visitor(md);
2326    visit_type_NetdevTapOptions(v, &obj, NULL, NULL);
2327    qapi_dealloc_visitor_cleanup(md);
2328}
2329
2330
2331void qapi_free_NetdevSocketOptionsList(NetdevSocketOptionsList * obj)
2332{
2333    QapiDeallocVisitor *md;
2334    Visitor *v;
2335
2336    if (!obj) {
2337        return;
2338    }
2339
2340    md = qapi_dealloc_visitor_new();
2341    v = qapi_dealloc_get_visitor(md);
2342    visit_type_NetdevSocketOptionsList(v, &obj, NULL, NULL);
2343    qapi_dealloc_visitor_cleanup(md);
2344}
2345
2346
2347void qapi_free_NetdevSocketOptions(NetdevSocketOptions * obj)
2348{
2349    QapiDeallocVisitor *md;
2350    Visitor *v;
2351
2352    if (!obj) {
2353        return;
2354    }
2355
2356    md = qapi_dealloc_visitor_new();
2357    v = qapi_dealloc_get_visitor(md);
2358    visit_type_NetdevSocketOptions(v, &obj, NULL, NULL);
2359    qapi_dealloc_visitor_cleanup(md);
2360}
2361
2362
2363void qapi_free_NetdevVdeOptionsList(NetdevVdeOptionsList * obj)
2364{
2365    QapiDeallocVisitor *md;
2366    Visitor *v;
2367
2368    if (!obj) {
2369        return;
2370    }
2371
2372    md = qapi_dealloc_visitor_new();
2373    v = qapi_dealloc_get_visitor(md);
2374    visit_type_NetdevVdeOptionsList(v, &obj, NULL, NULL);
2375    qapi_dealloc_visitor_cleanup(md);
2376}
2377
2378
2379void qapi_free_NetdevVdeOptions(NetdevVdeOptions * obj)
2380{
2381    QapiDeallocVisitor *md;
2382    Visitor *v;
2383
2384    if (!obj) {
2385        return;
2386    }
2387
2388    md = qapi_dealloc_visitor_new();
2389    v = qapi_dealloc_get_visitor(md);
2390    visit_type_NetdevVdeOptions(v, &obj, NULL, NULL);
2391    qapi_dealloc_visitor_cleanup(md);
2392}
2393
2394
2395void qapi_free_NetdevDumpOptionsList(NetdevDumpOptionsList * obj)
2396{
2397    QapiDeallocVisitor *md;
2398    Visitor *v;
2399
2400    if (!obj) {
2401        return;
2402    }
2403
2404    md = qapi_dealloc_visitor_new();
2405    v = qapi_dealloc_get_visitor(md);
2406    visit_type_NetdevDumpOptionsList(v, &obj, NULL, NULL);
2407    qapi_dealloc_visitor_cleanup(md);
2408}
2409
2410
2411void qapi_free_NetdevDumpOptions(NetdevDumpOptions * obj)
2412{
2413    QapiDeallocVisitor *md;
2414    Visitor *v;
2415
2416    if (!obj) {
2417        return;
2418    }
2419
2420    md = qapi_dealloc_visitor_new();
2421    v = qapi_dealloc_get_visitor(md);
2422    visit_type_NetdevDumpOptions(v, &obj, NULL, NULL);
2423    qapi_dealloc_visitor_cleanup(md);
2424}
2425
2426
2427void qapi_free_NetdevBridgeOptionsList(NetdevBridgeOptionsList * obj)
2428{
2429    QapiDeallocVisitor *md;
2430    Visitor *v;
2431
2432    if (!obj) {
2433        return;
2434    }
2435
2436    md = qapi_dealloc_visitor_new();
2437    v = qapi_dealloc_get_visitor(md);
2438    visit_type_NetdevBridgeOptionsList(v, &obj, NULL, NULL);
2439    qapi_dealloc_visitor_cleanup(md);
2440}
2441
2442
2443void qapi_free_NetdevBridgeOptions(NetdevBridgeOptions * obj)
2444{
2445    QapiDeallocVisitor *md;
2446    Visitor *v;
2447
2448    if (!obj) {
2449        return;
2450    }
2451
2452    md = qapi_dealloc_visitor_new();
2453    v = qapi_dealloc_get_visitor(md);
2454    visit_type_NetdevBridgeOptions(v, &obj, NULL, NULL);
2455    qapi_dealloc_visitor_cleanup(md);
2456}
2457
2458
2459void qapi_free_NetdevHubPortOptionsList(NetdevHubPortOptionsList * obj)
2460{
2461    QapiDeallocVisitor *md;
2462    Visitor *v;
2463
2464    if (!obj) {
2465        return;
2466    }
2467
2468    md = qapi_dealloc_visitor_new();
2469    v = qapi_dealloc_get_visitor(md);
2470    visit_type_NetdevHubPortOptionsList(v, &obj, NULL, NULL);
2471    qapi_dealloc_visitor_cleanup(md);
2472}
2473
2474
2475void qapi_free_NetdevHubPortOptions(NetdevHubPortOptions * obj)
2476{
2477    QapiDeallocVisitor *md;
2478    Visitor *v;
2479
2480    if (!obj) {
2481        return;
2482    }
2483
2484    md = qapi_dealloc_visitor_new();
2485    v = qapi_dealloc_get_visitor(md);
2486    visit_type_NetdevHubPortOptions(v, &obj, NULL, NULL);
2487    qapi_dealloc_visitor_cleanup(md);
2488}
2489
2490
2491void qapi_free_NetdevNetmapOptionsList(NetdevNetmapOptionsList * obj)
2492{
2493    QapiDeallocVisitor *md;
2494    Visitor *v;
2495
2496    if (!obj) {
2497        return;
2498    }
2499
2500    md = qapi_dealloc_visitor_new();
2501    v = qapi_dealloc_get_visitor(md);
2502    visit_type_NetdevNetmapOptionsList(v, &obj, NULL, NULL);
2503    qapi_dealloc_visitor_cleanup(md);
2504}
2505
2506
2507void qapi_free_NetdevNetmapOptions(NetdevNetmapOptions * obj)
2508{
2509    QapiDeallocVisitor *md;
2510    Visitor *v;
2511
2512    if (!obj) {
2513        return;
2514    }
2515
2516    md = qapi_dealloc_visitor_new();
2517    v = qapi_dealloc_get_visitor(md);
2518    visit_type_NetdevNetmapOptions(v, &obj, NULL, NULL);
2519    qapi_dealloc_visitor_cleanup(md);
2520}
2521
2522
2523void qapi_free_NetClientOptionsList(NetClientOptionsList * obj)
2524{
2525    QapiDeallocVisitor *md;
2526    Visitor *v;
2527
2528    if (!obj) {
2529        return;
2530    }
2531
2532    md = qapi_dealloc_visitor_new();
2533    v = qapi_dealloc_get_visitor(md);
2534    visit_type_NetClientOptionsList(v, &obj, NULL, NULL);
2535    qapi_dealloc_visitor_cleanup(md);
2536}
2537
2538
2539void qapi_free_NetClientOptions(NetClientOptions * obj)
2540{
2541    QapiDeallocVisitor *md;
2542    Visitor *v;
2543
2544    if (!obj) {
2545        return;
2546    }
2547
2548    md = qapi_dealloc_visitor_new();
2549    v = qapi_dealloc_get_visitor(md);
2550    visit_type_NetClientOptions(v, &obj, NULL, NULL);
2551    qapi_dealloc_visitor_cleanup(md);
2552}
2553
2554
2555void qapi_free_NetLegacyList(NetLegacyList * obj)
2556{
2557    QapiDeallocVisitor *md;
2558    Visitor *v;
2559
2560    if (!obj) {
2561        return;
2562    }
2563
2564    md = qapi_dealloc_visitor_new();
2565    v = qapi_dealloc_get_visitor(md);
2566    visit_type_NetLegacyList(v, &obj, NULL, NULL);
2567    qapi_dealloc_visitor_cleanup(md);
2568}
2569
2570
2571void qapi_free_NetLegacy(NetLegacy * obj)
2572{
2573    QapiDeallocVisitor *md;
2574    Visitor *v;
2575
2576    if (!obj) {
2577        return;
2578    }
2579
2580    md = qapi_dealloc_visitor_new();
2581    v = qapi_dealloc_get_visitor(md);
2582    visit_type_NetLegacy(v, &obj, NULL, NULL);
2583    qapi_dealloc_visitor_cleanup(md);
2584}
2585
2586
2587void qapi_free_NetdevList(NetdevList * obj)
2588{
2589    QapiDeallocVisitor *md;
2590    Visitor *v;
2591
2592    if (!obj) {
2593        return;
2594    }
2595
2596    md = qapi_dealloc_visitor_new();
2597    v = qapi_dealloc_get_visitor(md);
2598    visit_type_NetdevList(v, &obj, NULL, NULL);
2599    qapi_dealloc_visitor_cleanup(md);
2600}
2601
2602
2603void qapi_free_Netdev(Netdev * obj)
2604{
2605    QapiDeallocVisitor *md;
2606    Visitor *v;
2607
2608    if (!obj) {
2609        return;
2610    }
2611
2612    md = qapi_dealloc_visitor_new();
2613    v = qapi_dealloc_get_visitor(md);
2614    visit_type_Netdev(v, &obj, NULL, NULL);
2615    qapi_dealloc_visitor_cleanup(md);
2616}
2617
2618
2619void qapi_free_InetSocketAddressList(InetSocketAddressList * obj)
2620{
2621    QapiDeallocVisitor *md;
2622    Visitor *v;
2623
2624    if (!obj) {
2625        return;
2626    }
2627
2628    md = qapi_dealloc_visitor_new();
2629    v = qapi_dealloc_get_visitor(md);
2630    visit_type_InetSocketAddressList(v, &obj, NULL, NULL);
2631    qapi_dealloc_visitor_cleanup(md);
2632}
2633
2634
2635void qapi_free_InetSocketAddress(InetSocketAddress * obj)
2636{
2637    QapiDeallocVisitor *md;
2638    Visitor *v;
2639
2640    if (!obj) {
2641        return;
2642    }
2643
2644    md = qapi_dealloc_visitor_new();
2645    v = qapi_dealloc_get_visitor(md);
2646    visit_type_InetSocketAddress(v, &obj, NULL, NULL);
2647    qapi_dealloc_visitor_cleanup(md);
2648}
2649
2650
2651void qapi_free_UnixSocketAddressList(UnixSocketAddressList * obj)
2652{
2653    QapiDeallocVisitor *md;
2654    Visitor *v;
2655
2656    if (!obj) {
2657        return;
2658    }
2659
2660    md = qapi_dealloc_visitor_new();
2661    v = qapi_dealloc_get_visitor(md);
2662    visit_type_UnixSocketAddressList(v, &obj, NULL, NULL);
2663    qapi_dealloc_visitor_cleanup(md);
2664}
2665
2666
2667void qapi_free_UnixSocketAddress(UnixSocketAddress * obj)
2668{
2669    QapiDeallocVisitor *md;
2670    Visitor *v;
2671
2672    if (!obj) {
2673        return;
2674    }
2675
2676    md = qapi_dealloc_visitor_new();
2677    v = qapi_dealloc_get_visitor(md);
2678    visit_type_UnixSocketAddress(v, &obj, NULL, NULL);
2679    qapi_dealloc_visitor_cleanup(md);
2680}
2681
2682
2683void qapi_free_SocketAddressList(SocketAddressList * obj)
2684{
2685    QapiDeallocVisitor *md;
2686    Visitor *v;
2687
2688    if (!obj) {
2689        return;
2690    }
2691
2692    md = qapi_dealloc_visitor_new();
2693    v = qapi_dealloc_get_visitor(md);
2694    visit_type_SocketAddressList(v, &obj, NULL, NULL);
2695    qapi_dealloc_visitor_cleanup(md);
2696}
2697
2698
2699void qapi_free_SocketAddress(SocketAddress * obj)
2700{
2701    QapiDeallocVisitor *md;
2702    Visitor *v;
2703
2704    if (!obj) {
2705        return;
2706    }
2707
2708    md = qapi_dealloc_visitor_new();
2709    v = qapi_dealloc_get_visitor(md);
2710    visit_type_SocketAddress(v, &obj, NULL, NULL);
2711    qapi_dealloc_visitor_cleanup(md);
2712}
2713
2714
2715void qapi_free_MachineInfoList(MachineInfoList * obj)
2716{
2717    QapiDeallocVisitor *md;
2718    Visitor *v;
2719
2720    if (!obj) {
2721        return;
2722    }
2723
2724    md = qapi_dealloc_visitor_new();
2725    v = qapi_dealloc_get_visitor(md);
2726    visit_type_MachineInfoList(v, &obj, NULL, NULL);
2727    qapi_dealloc_visitor_cleanup(md);
2728}
2729
2730
2731void qapi_free_MachineInfo(MachineInfo * obj)
2732{
2733    QapiDeallocVisitor *md;
2734    Visitor *v;
2735
2736    if (!obj) {
2737        return;
2738    }
2739
2740    md = qapi_dealloc_visitor_new();
2741    v = qapi_dealloc_get_visitor(md);
2742    visit_type_MachineInfo(v, &obj, NULL, NULL);
2743    qapi_dealloc_visitor_cleanup(md);
2744}
2745
2746
2747void qapi_free_CpuDefinitionInfoList(CpuDefinitionInfoList * obj)
2748{
2749    QapiDeallocVisitor *md;
2750    Visitor *v;
2751
2752    if (!obj) {
2753        return;
2754    }
2755
2756    md = qapi_dealloc_visitor_new();
2757    v = qapi_dealloc_get_visitor(md);
2758    visit_type_CpuDefinitionInfoList(v, &obj, NULL, NULL);
2759    qapi_dealloc_visitor_cleanup(md);
2760}
2761
2762
2763void qapi_free_CpuDefinitionInfo(CpuDefinitionInfo * obj)
2764{
2765    QapiDeallocVisitor *md;
2766    Visitor *v;
2767
2768    if (!obj) {
2769        return;
2770    }
2771
2772    md = qapi_dealloc_visitor_new();
2773    v = qapi_dealloc_get_visitor(md);
2774    visit_type_CpuDefinitionInfo(v, &obj, NULL, NULL);
2775    qapi_dealloc_visitor_cleanup(md);
2776}
2777
2778
2779void qapi_free_AddfdInfoList(AddfdInfoList * obj)
2780{
2781    QapiDeallocVisitor *md;
2782    Visitor *v;
2783
2784    if (!obj) {
2785        return;
2786    }
2787
2788    md = qapi_dealloc_visitor_new();
2789    v = qapi_dealloc_get_visitor(md);
2790    visit_type_AddfdInfoList(v, &obj, NULL, NULL);
2791    qapi_dealloc_visitor_cleanup(md);
2792}
2793
2794
2795void qapi_free_AddfdInfo(AddfdInfo * obj)
2796{
2797    QapiDeallocVisitor *md;
2798    Visitor *v;
2799
2800    if (!obj) {
2801        return;
2802    }
2803
2804    md = qapi_dealloc_visitor_new();
2805    v = qapi_dealloc_get_visitor(md);
2806    visit_type_AddfdInfo(v, &obj, NULL, NULL);
2807    qapi_dealloc_visitor_cleanup(md);
2808}
2809
2810
2811void qapi_free_FdsetFdInfoList(FdsetFdInfoList * obj)
2812{
2813    QapiDeallocVisitor *md;
2814    Visitor *v;
2815
2816    if (!obj) {
2817        return;
2818    }
2819
2820    md = qapi_dealloc_visitor_new();
2821    v = qapi_dealloc_get_visitor(md);
2822    visit_type_FdsetFdInfoList(v, &obj, NULL, NULL);
2823    qapi_dealloc_visitor_cleanup(md);
2824}
2825
2826
2827void qapi_free_FdsetFdInfo(FdsetFdInfo * obj)
2828{
2829    QapiDeallocVisitor *md;
2830    Visitor *v;
2831
2832    if (!obj) {
2833        return;
2834    }
2835
2836    md = qapi_dealloc_visitor_new();
2837    v = qapi_dealloc_get_visitor(md);
2838    visit_type_FdsetFdInfo(v, &obj, NULL, NULL);
2839    qapi_dealloc_visitor_cleanup(md);
2840}
2841
2842
2843void qapi_free_FdsetInfoList(FdsetInfoList * obj)
2844{
2845    QapiDeallocVisitor *md;
2846    Visitor *v;
2847
2848    if (!obj) {
2849        return;
2850    }
2851
2852    md = qapi_dealloc_visitor_new();
2853    v = qapi_dealloc_get_visitor(md);
2854    visit_type_FdsetInfoList(v, &obj, NULL, NULL);
2855    qapi_dealloc_visitor_cleanup(md);
2856}
2857
2858
2859void qapi_free_FdsetInfo(FdsetInfo * obj)
2860{
2861    QapiDeallocVisitor *md;
2862    Visitor *v;
2863
2864    if (!obj) {
2865        return;
2866    }
2867
2868    md = qapi_dealloc_visitor_new();
2869    v = qapi_dealloc_get_visitor(md);
2870    visit_type_FdsetInfo(v, &obj, NULL, NULL);
2871    qapi_dealloc_visitor_cleanup(md);
2872}
2873
2874
2875void qapi_free_TargetInfoList(TargetInfoList * obj)
2876{
2877    QapiDeallocVisitor *md;
2878    Visitor *v;
2879
2880    if (!obj) {
2881        return;
2882    }
2883
2884    md = qapi_dealloc_visitor_new();
2885    v = qapi_dealloc_get_visitor(md);
2886    visit_type_TargetInfoList(v, &obj, NULL, NULL);
2887    qapi_dealloc_visitor_cleanup(md);
2888}
2889
2890
2891void qapi_free_TargetInfo(TargetInfo * obj)
2892{
2893    QapiDeallocVisitor *md;
2894    Visitor *v;
2895
2896    if (!obj) {
2897        return;
2898    }
2899
2900    md = qapi_dealloc_visitor_new();
2901    v = qapi_dealloc_get_visitor(md);
2902    visit_type_TargetInfo(v, &obj, NULL, NULL);
2903    qapi_dealloc_visitor_cleanup(md);
2904}
2905
2906
2907void qapi_free_QKeyCodeList(QKeyCodeList * obj)
2908{
2909    QapiDeallocVisitor *md;
2910    Visitor *v;
2911
2912    if (!obj) {
2913        return;
2914    }
2915
2916    md = qapi_dealloc_visitor_new();
2917    v = qapi_dealloc_get_visitor(md);
2918    visit_type_QKeyCodeList(v, &obj, NULL, NULL);
2919    qapi_dealloc_visitor_cleanup(md);
2920}
2921
2922
2923void qapi_free_KeyValueList(KeyValueList * obj)
2924{
2925    QapiDeallocVisitor *md;
2926    Visitor *v;
2927
2928    if (!obj) {
2929        return;
2930    }
2931
2932    md = qapi_dealloc_visitor_new();
2933    v = qapi_dealloc_get_visitor(md);
2934    visit_type_KeyValueList(v, &obj, NULL, NULL);
2935    qapi_dealloc_visitor_cleanup(md);
2936}
2937
2938
2939void qapi_free_KeyValue(KeyValue * obj)
2940{
2941    QapiDeallocVisitor *md;
2942    Visitor *v;
2943
2944    if (!obj) {
2945        return;
2946    }
2947
2948    md = qapi_dealloc_visitor_new();
2949    v = qapi_dealloc_get_visitor(md);
2950    visit_type_KeyValue(v, &obj, NULL, NULL);
2951    qapi_dealloc_visitor_cleanup(md);
2952}
2953
2954
2955void qapi_free_ChardevFileList(ChardevFileList * obj)
2956{
2957    QapiDeallocVisitor *md;
2958    Visitor *v;
2959
2960    if (!obj) {
2961        return;
2962    }
2963
2964    md = qapi_dealloc_visitor_new();
2965    v = qapi_dealloc_get_visitor(md);
2966    visit_type_ChardevFileList(v, &obj, NULL, NULL);
2967    qapi_dealloc_visitor_cleanup(md);
2968}
2969
2970
2971void qapi_free_ChardevFile(ChardevFile * obj)
2972{
2973    QapiDeallocVisitor *md;
2974    Visitor *v;
2975
2976    if (!obj) {
2977        return;
2978    }
2979
2980    md = qapi_dealloc_visitor_new();
2981    v = qapi_dealloc_get_visitor(md);
2982    visit_type_ChardevFile(v, &obj, NULL, NULL);
2983    qapi_dealloc_visitor_cleanup(md);
2984}
2985
2986
2987void qapi_free_ChardevHostdevList(ChardevHostdevList * obj)
2988{
2989    QapiDeallocVisitor *md;
2990    Visitor *v;
2991
2992    if (!obj) {
2993        return;
2994    }
2995
2996    md = qapi_dealloc_visitor_new();
2997    v = qapi_dealloc_get_visitor(md);
2998    visit_type_ChardevHostdevList(v, &obj, NULL, NULL);
2999    qapi_dealloc_visitor_cleanup(md);
3000}
3001
3002
3003void qapi_free_ChardevHostdev(ChardevHostdev * obj)
3004{
3005    QapiDeallocVisitor *md;
3006    Visitor *v;
3007
3008    if (!obj) {
3009        return;
3010    }
3011
3012    md = qapi_dealloc_visitor_new();
3013    v = qapi_dealloc_get_visitor(md);
3014    visit_type_ChardevHostdev(v, &obj, NULL, NULL);
3015    qapi_dealloc_visitor_cleanup(md);
3016}
3017
3018
3019void qapi_free_ChardevSocketList(ChardevSocketList * obj)
3020{
3021    QapiDeallocVisitor *md;
3022    Visitor *v;
3023
3024    if (!obj) {
3025        return;
3026    }
3027
3028    md = qapi_dealloc_visitor_new();
3029    v = qapi_dealloc_get_visitor(md);
3030    visit_type_ChardevSocketList(v, &obj, NULL, NULL);
3031    qapi_dealloc_visitor_cleanup(md);
3032}
3033
3034
3035void qapi_free_ChardevSocket(ChardevSocket * obj)
3036{
3037    QapiDeallocVisitor *md;
3038    Visitor *v;
3039
3040    if (!obj) {
3041        return;
3042    }
3043
3044    md = qapi_dealloc_visitor_new();
3045    v = qapi_dealloc_get_visitor(md);
3046    visit_type_ChardevSocket(v, &obj, NULL, NULL);
3047    qapi_dealloc_visitor_cleanup(md);
3048}
3049
3050
3051void qapi_free_ChardevUdpList(ChardevUdpList * obj)
3052{
3053    QapiDeallocVisitor *md;
3054    Visitor *v;
3055
3056    if (!obj) {
3057        return;
3058    }
3059
3060    md = qapi_dealloc_visitor_new();
3061    v = qapi_dealloc_get_visitor(md);
3062    visit_type_ChardevUdpList(v, &obj, NULL, NULL);
3063    qapi_dealloc_visitor_cleanup(md);
3064}
3065
3066
3067void qapi_free_ChardevUdp(ChardevUdp * obj)
3068{
3069    QapiDeallocVisitor *md;
3070    Visitor *v;
3071
3072    if (!obj) {
3073        return;
3074    }
3075
3076    md = qapi_dealloc_visitor_new();
3077    v = qapi_dealloc_get_visitor(md);
3078    visit_type_ChardevUdp(v, &obj, NULL, NULL);
3079    qapi_dealloc_visitor_cleanup(md);
3080}
3081
3082
3083void qapi_free_ChardevMuxList(ChardevMuxList * obj)
3084{
3085    QapiDeallocVisitor *md;
3086    Visitor *v;
3087
3088    if (!obj) {
3089        return;
3090    }
3091
3092    md = qapi_dealloc_visitor_new();
3093    v = qapi_dealloc_get_visitor(md);
3094    visit_type_ChardevMuxList(v, &obj, NULL, NULL);
3095    qapi_dealloc_visitor_cleanup(md);
3096}
3097
3098
3099void qapi_free_ChardevMux(ChardevMux * obj)
3100{
3101    QapiDeallocVisitor *md;
3102    Visitor *v;
3103
3104    if (!obj) {
3105        return;
3106    }
3107
3108    md = qapi_dealloc_visitor_new();
3109    v = qapi_dealloc_get_visitor(md);
3110    visit_type_ChardevMux(v, &obj, NULL, NULL);
3111    qapi_dealloc_visitor_cleanup(md);
3112}
3113
3114
3115void qapi_free_ChardevStdioList(ChardevStdioList * obj)
3116{
3117    QapiDeallocVisitor *md;
3118    Visitor *v;
3119
3120    if (!obj) {
3121        return;
3122    }
3123
3124    md = qapi_dealloc_visitor_new();
3125    v = qapi_dealloc_get_visitor(md);
3126    visit_type_ChardevStdioList(v, &obj, NULL, NULL);
3127    qapi_dealloc_visitor_cleanup(md);
3128}
3129
3130
3131void qapi_free_ChardevStdio(ChardevStdio * obj)
3132{
3133    QapiDeallocVisitor *md;
3134    Visitor *v;
3135
3136    if (!obj) {
3137        return;
3138    }
3139
3140    md = qapi_dealloc_visitor_new();
3141    v = qapi_dealloc_get_visitor(md);
3142    visit_type_ChardevStdio(v, &obj, NULL, NULL);
3143    qapi_dealloc_visitor_cleanup(md);
3144}
3145
3146
3147void qapi_free_ChardevSpiceChannelList(ChardevSpiceChannelList * obj)
3148{
3149    QapiDeallocVisitor *md;
3150    Visitor *v;
3151
3152    if (!obj) {
3153        return;
3154    }
3155
3156    md = qapi_dealloc_visitor_new();
3157    v = qapi_dealloc_get_visitor(md);
3158    visit_type_ChardevSpiceChannelList(v, &obj, NULL, NULL);
3159    qapi_dealloc_visitor_cleanup(md);
3160}
3161
3162
3163void qapi_free_ChardevSpiceChannel(ChardevSpiceChannel * obj)
3164{
3165    QapiDeallocVisitor *md;
3166    Visitor *v;
3167
3168    if (!obj) {
3169        return;
3170    }
3171
3172    md = qapi_dealloc_visitor_new();
3173    v = qapi_dealloc_get_visitor(md);
3174    visit_type_ChardevSpiceChannel(v, &obj, NULL, NULL);
3175    qapi_dealloc_visitor_cleanup(md);
3176}
3177
3178
3179void qapi_free_ChardevSpicePortList(ChardevSpicePortList * obj)
3180{
3181    QapiDeallocVisitor *md;
3182    Visitor *v;
3183
3184    if (!obj) {
3185        return;
3186    }
3187
3188    md = qapi_dealloc_visitor_new();
3189    v = qapi_dealloc_get_visitor(md);
3190    visit_type_ChardevSpicePortList(v, &obj, NULL, NULL);
3191    qapi_dealloc_visitor_cleanup(md);
3192}
3193
3194
3195void qapi_free_ChardevSpicePort(ChardevSpicePort * obj)
3196{
3197    QapiDeallocVisitor *md;
3198    Visitor *v;
3199
3200    if (!obj) {
3201        return;
3202    }
3203
3204    md = qapi_dealloc_visitor_new();
3205    v = qapi_dealloc_get_visitor(md);
3206    visit_type_ChardevSpicePort(v, &obj, NULL, NULL);
3207    qapi_dealloc_visitor_cleanup(md);
3208}
3209
3210
3211void qapi_free_ChardevVCList(ChardevVCList * obj)
3212{
3213    QapiDeallocVisitor *md;
3214    Visitor *v;
3215
3216    if (!obj) {
3217        return;
3218    }
3219
3220    md = qapi_dealloc_visitor_new();
3221    v = qapi_dealloc_get_visitor(md);
3222    visit_type_ChardevVCList(v, &obj, NULL, NULL);
3223    qapi_dealloc_visitor_cleanup(md);
3224}
3225
3226
3227void qapi_free_ChardevVC(ChardevVC * obj)
3228{
3229    QapiDeallocVisitor *md;
3230    Visitor *v;
3231
3232    if (!obj) {
3233        return;
3234    }
3235
3236    md = qapi_dealloc_visitor_new();
3237    v = qapi_dealloc_get_visitor(md);
3238    visit_type_ChardevVC(v, &obj, NULL, NULL);
3239    qapi_dealloc_visitor_cleanup(md);
3240}
3241
3242
3243void qapi_free_ChardevRingbufList(ChardevRingbufList * obj)
3244{
3245    QapiDeallocVisitor *md;
3246    Visitor *v;
3247
3248    if (!obj) {
3249        return;
3250    }
3251
3252    md = qapi_dealloc_visitor_new();
3253    v = qapi_dealloc_get_visitor(md);
3254    visit_type_ChardevRingbufList(v, &obj, NULL, NULL);
3255    qapi_dealloc_visitor_cleanup(md);
3256}
3257
3258
3259void qapi_free_ChardevRingbuf(ChardevRingbuf * obj)
3260{
3261    QapiDeallocVisitor *md;
3262    Visitor *v;
3263
3264    if (!obj) {
3265        return;
3266    }
3267
3268    md = qapi_dealloc_visitor_new();
3269    v = qapi_dealloc_get_visitor(md);
3270    visit_type_ChardevRingbuf(v, &obj, NULL, NULL);
3271    qapi_dealloc_visitor_cleanup(md);
3272}
3273
3274
3275void qapi_free_ChardevDummyList(ChardevDummyList * obj)
3276{
3277    QapiDeallocVisitor *md;
3278    Visitor *v;
3279
3280    if (!obj) {
3281        return;
3282    }
3283
3284    md = qapi_dealloc_visitor_new();
3285    v = qapi_dealloc_get_visitor(md);
3286    visit_type_ChardevDummyList(v, &obj, NULL, NULL);
3287    qapi_dealloc_visitor_cleanup(md);
3288}
3289
3290
3291void qapi_free_ChardevDummy(ChardevDummy * obj)
3292{
3293    QapiDeallocVisitor *md;
3294    Visitor *v;
3295
3296    if (!obj) {
3297        return;
3298    }
3299
3300    md = qapi_dealloc_visitor_new();
3301    v = qapi_dealloc_get_visitor(md);
3302    visit_type_ChardevDummy(v, &obj, NULL, NULL);
3303    qapi_dealloc_visitor_cleanup(md);
3304}
3305
3306
3307void qapi_free_ChardevBackendList(ChardevBackendList * obj)
3308{
3309    QapiDeallocVisitor *md;
3310    Visitor *v;
3311
3312    if (!obj) {
3313        return;
3314    }
3315
3316    md = qapi_dealloc_visitor_new();
3317    v = qapi_dealloc_get_visitor(md);
3318    visit_type_ChardevBackendList(v, &obj, NULL, NULL);
3319    qapi_dealloc_visitor_cleanup(md);
3320}
3321
3322
3323void qapi_free_ChardevBackend(ChardevBackend * obj)
3324{
3325    QapiDeallocVisitor *md;
3326    Visitor *v;
3327
3328    if (!obj) {
3329        return;
3330    }
3331
3332    md = qapi_dealloc_visitor_new();
3333    v = qapi_dealloc_get_visitor(md);
3334    visit_type_ChardevBackend(v, &obj, NULL, NULL);
3335    qapi_dealloc_visitor_cleanup(md);
3336}
3337
3338
3339void qapi_free_ChardevReturnList(ChardevReturnList * obj)
3340{
3341    QapiDeallocVisitor *md;
3342    Visitor *v;
3343
3344    if (!obj) {
3345        return;
3346    }
3347
3348    md = qapi_dealloc_visitor_new();
3349    v = qapi_dealloc_get_visitor(md);
3350    visit_type_ChardevReturnList(v, &obj, NULL, NULL);
3351    qapi_dealloc_visitor_cleanup(md);
3352}
3353
3354
3355void qapi_free_ChardevReturn(ChardevReturn * obj)
3356{
3357    QapiDeallocVisitor *md;
3358    Visitor *v;
3359
3360    if (!obj) {
3361        return;
3362    }
3363
3364    md = qapi_dealloc_visitor_new();
3365    v = qapi_dealloc_get_visitor(md);
3366    visit_type_ChardevReturn(v, &obj, NULL, NULL);
3367    qapi_dealloc_visitor_cleanup(md);
3368}
3369
3370
3371void qapi_free_TpmModelList(TpmModelList * obj)
3372{
3373    QapiDeallocVisitor *md;
3374    Visitor *v;
3375
3376    if (!obj) {
3377        return;
3378    }
3379
3380    md = qapi_dealloc_visitor_new();
3381    v = qapi_dealloc_get_visitor(md);
3382    visit_type_TpmModelList(v, &obj, NULL, NULL);
3383    qapi_dealloc_visitor_cleanup(md);
3384}
3385
3386
3387void qapi_free_TpmTypeList(TpmTypeList * obj)
3388{
3389    QapiDeallocVisitor *md;
3390    Visitor *v;
3391
3392    if (!obj) {
3393        return;
3394    }
3395
3396    md = qapi_dealloc_visitor_new();
3397    v = qapi_dealloc_get_visitor(md);
3398    visit_type_TpmTypeList(v, &obj, NULL, NULL);
3399    qapi_dealloc_visitor_cleanup(md);
3400}
3401
3402
3403void qapi_free_TPMPassthroughOptionsList(TPMPassthroughOptionsList * obj)
3404{
3405    QapiDeallocVisitor *md;
3406    Visitor *v;
3407
3408    if (!obj) {
3409        return;
3410    }
3411
3412    md = qapi_dealloc_visitor_new();
3413    v = qapi_dealloc_get_visitor(md);
3414    visit_type_TPMPassthroughOptionsList(v, &obj, NULL, NULL);
3415    qapi_dealloc_visitor_cleanup(md);
3416}
3417
3418
3419void qapi_free_TPMPassthroughOptions(TPMPassthroughOptions * obj)
3420{
3421    QapiDeallocVisitor *md;
3422    Visitor *v;
3423
3424    if (!obj) {
3425        return;
3426    }
3427
3428    md = qapi_dealloc_visitor_new();
3429    v = qapi_dealloc_get_visitor(md);
3430    visit_type_TPMPassthroughOptions(v, &obj, NULL, NULL);
3431    qapi_dealloc_visitor_cleanup(md);
3432}
3433
3434
3435void qapi_free_TpmTypeOptionsList(TpmTypeOptionsList * obj)
3436{
3437    QapiDeallocVisitor *md;
3438    Visitor *v;
3439
3440    if (!obj) {
3441        return;
3442    }
3443
3444    md = qapi_dealloc_visitor_new();
3445    v = qapi_dealloc_get_visitor(md);
3446    visit_type_TpmTypeOptionsList(v, &obj, NULL, NULL);
3447    qapi_dealloc_visitor_cleanup(md);
3448}
3449
3450
3451void qapi_free_TpmTypeOptions(TpmTypeOptions * obj)
3452{
3453    QapiDeallocVisitor *md;
3454    Visitor *v;
3455
3456    if (!obj) {
3457        return;
3458    }
3459
3460    md = qapi_dealloc_visitor_new();
3461    v = qapi_dealloc_get_visitor(md);
3462    visit_type_TpmTypeOptions(v, &obj, NULL, NULL);
3463    qapi_dealloc_visitor_cleanup(md);
3464}
3465
3466
3467void qapi_free_TPMInfoList(TPMInfoList * obj)
3468{
3469    QapiDeallocVisitor *md;
3470    Visitor *v;
3471
3472    if (!obj) {
3473        return;
3474    }
3475
3476    md = qapi_dealloc_visitor_new();
3477    v = qapi_dealloc_get_visitor(md);
3478    visit_type_TPMInfoList(v, &obj, NULL, NULL);
3479    qapi_dealloc_visitor_cleanup(md);
3480}
3481
3482
3483void qapi_free_TPMInfo(TPMInfo * obj)
3484{
3485    QapiDeallocVisitor *md;
3486    Visitor *v;
3487
3488    if (!obj) {
3489        return;
3490    }
3491
3492    md = qapi_dealloc_visitor_new();
3493    v = qapi_dealloc_get_visitor(md);
3494    visit_type_TPMInfo(v, &obj, NULL, NULL);
3495    qapi_dealloc_visitor_cleanup(md);
3496}
3497
3498
3499void qapi_free_AcpiTableOptionsList(AcpiTableOptionsList * obj)
3500{
3501    QapiDeallocVisitor *md;
3502    Visitor *v;
3503
3504    if (!obj) {
3505        return;
3506    }
3507
3508    md = qapi_dealloc_visitor_new();
3509    v = qapi_dealloc_get_visitor(md);
3510    visit_type_AcpiTableOptionsList(v, &obj, NULL, NULL);
3511    qapi_dealloc_visitor_cleanup(md);
3512}
3513
3514
3515void qapi_free_AcpiTableOptions(AcpiTableOptions * obj)
3516{
3517    QapiDeallocVisitor *md;
3518    Visitor *v;
3519
3520    if (!obj) {
3521        return;
3522    }
3523
3524    md = qapi_dealloc_visitor_new();
3525    v = qapi_dealloc_get_visitor(md);
3526    visit_type_AcpiTableOptions(v, &obj, NULL, NULL);
3527    qapi_dealloc_visitor_cleanup(md);
3528}
3529
3530
3531void qapi_free_CommandLineParameterTypeList(CommandLineParameterTypeList * obj)
3532{
3533    QapiDeallocVisitor *md;
3534    Visitor *v;
3535
3536    if (!obj) {
3537        return;
3538    }
3539
3540    md = qapi_dealloc_visitor_new();
3541    v = qapi_dealloc_get_visitor(md);
3542    visit_type_CommandLineParameterTypeList(v, &obj, NULL, NULL);
3543    qapi_dealloc_visitor_cleanup(md);
3544}
3545
3546
3547void qapi_free_CommandLineParameterInfoList(CommandLineParameterInfoList * obj)
3548{
3549    QapiDeallocVisitor *md;
3550    Visitor *v;
3551
3552    if (!obj) {
3553        return;
3554    }
3555
3556    md = qapi_dealloc_visitor_new();
3557    v = qapi_dealloc_get_visitor(md);
3558    visit_type_CommandLineParameterInfoList(v, &obj, NULL, NULL);
3559    qapi_dealloc_visitor_cleanup(md);
3560}
3561
3562
3563void qapi_free_CommandLineParameterInfo(CommandLineParameterInfo * obj)
3564{
3565    QapiDeallocVisitor *md;
3566    Visitor *v;
3567
3568    if (!obj) {
3569        return;
3570    }
3571
3572    md = qapi_dealloc_visitor_new();
3573    v = qapi_dealloc_get_visitor(md);
3574    visit_type_CommandLineParameterInfo(v, &obj, NULL, NULL);
3575    qapi_dealloc_visitor_cleanup(md);
3576}
3577
3578
3579void qapi_free_CommandLineOptionInfoList(CommandLineOptionInfoList * obj)
3580{
3581    QapiDeallocVisitor *md;
3582    Visitor *v;
3583
3584    if (!obj) {
3585        return;
3586    }
3587
3588    md = qapi_dealloc_visitor_new();
3589    v = qapi_dealloc_get_visitor(md);
3590    visit_type_CommandLineOptionInfoList(v, &obj, NULL, NULL);
3591    qapi_dealloc_visitor_cleanup(md);
3592}
3593
3594
3595void qapi_free_CommandLineOptionInfo(CommandLineOptionInfo * obj)
3596{
3597    QapiDeallocVisitor *md;
3598    Visitor *v;
3599
3600    if (!obj) {
3601        return;
3602    }
3603
3604    md = qapi_dealloc_visitor_new();
3605    v = qapi_dealloc_get_visitor(md);
3606    visit_type_CommandLineOptionInfo(v, &obj, NULL, NULL);
3607    qapi_dealloc_visitor_cleanup(md);
3608}
3609
3610
3611void qapi_free_X86CPURegister32List(X86CPURegister32List * obj)
3612{
3613    QapiDeallocVisitor *md;
3614    Visitor *v;
3615
3616    if (!obj) {
3617        return;
3618    }
3619
3620    md = qapi_dealloc_visitor_new();
3621    v = qapi_dealloc_get_visitor(md);
3622    visit_type_X86CPURegister32List(v, &obj, NULL, NULL);
3623    qapi_dealloc_visitor_cleanup(md);
3624}
3625
3626
3627void qapi_free_X86CPUFeatureWordInfoList(X86CPUFeatureWordInfoList * obj)
3628{
3629    QapiDeallocVisitor *md;
3630    Visitor *v;
3631
3632    if (!obj) {
3633        return;
3634    }
3635
3636    md = qapi_dealloc_visitor_new();
3637    v = qapi_dealloc_get_visitor(md);
3638    visit_type_X86CPUFeatureWordInfoList(v, &obj, NULL, NULL);
3639    qapi_dealloc_visitor_cleanup(md);
3640}
3641
3642
3643void qapi_free_X86CPUFeatureWordInfo(X86CPUFeatureWordInfo * obj)
3644{
3645    QapiDeallocVisitor *md;
3646    Visitor *v;
3647
3648    if (!obj) {
3649        return;
3650    }
3651
3652    md = qapi_dealloc_visitor_new();
3653    v = qapi_dealloc_get_visitor(md);
3654    visit_type_X86CPUFeatureWordInfo(v, &obj, NULL, NULL);
3655    qapi_dealloc_visitor_cleanup(md);
3656}
3657
3658
3659void qapi_free_RxStateList(RxStateList * obj)
3660{
3661    QapiDeallocVisitor *md;
3662    Visitor *v;
3663
3664    if (!obj) {
3665        return;
3666    }
3667
3668    md = qapi_dealloc_visitor_new();
3669    v = qapi_dealloc_get_visitor(md);
3670    visit_type_RxStateList(v, &obj, NULL, NULL);
3671    qapi_dealloc_visitor_cleanup(md);
3672}
3673
3674
3675void qapi_free_RxFilterInfoList(RxFilterInfoList * obj)
3676{
3677    QapiDeallocVisitor *md;
3678    Visitor *v;
3679
3680    if (!obj) {
3681        return;
3682    }
3683
3684    md = qapi_dealloc_visitor_new();
3685    v = qapi_dealloc_get_visitor(md);
3686    visit_type_RxFilterInfoList(v, &obj, NULL, NULL);
3687    qapi_dealloc_visitor_cleanup(md);
3688}
3689
3690
3691void qapi_free_RxFilterInfo(RxFilterInfo * obj)
3692{
3693    QapiDeallocVisitor *md;
3694    Visitor *v;
3695
3696    if (!obj) {
3697        return;
3698    }
3699
3700    md = qapi_dealloc_visitor_new();
3701    v = qapi_dealloc_get_visitor(md);
3702    visit_type_RxFilterInfo(v, &obj, NULL, NULL);
3703    qapi_dealloc_visitor_cleanup(md);
3704}
3705
3706
3707void qapi_free_BlockdevDiscardOptionsList(BlockdevDiscardOptionsList * obj)
3708{
3709    QapiDeallocVisitor *md;
3710    Visitor *v;
3711
3712    if (!obj) {
3713        return;
3714    }
3715
3716    md = qapi_dealloc_visitor_new();
3717    v = qapi_dealloc_get_visitor(md);
3718    visit_type_BlockdevDiscardOptionsList(v, &obj, NULL, NULL);
3719    qapi_dealloc_visitor_cleanup(md);
3720}
3721
3722
3723void qapi_free_BlockdevAioOptionsList(BlockdevAioOptionsList * obj)
3724{
3725    QapiDeallocVisitor *md;
3726    Visitor *v;
3727
3728    if (!obj) {
3729        return;
3730    }
3731
3732    md = qapi_dealloc_visitor_new();
3733    v = qapi_dealloc_get_visitor(md);
3734    visit_type_BlockdevAioOptionsList(v, &obj, NULL, NULL);
3735    qapi_dealloc_visitor_cleanup(md);
3736}
3737
3738
3739void qapi_free_BlockdevCacheOptionsList(BlockdevCacheOptionsList * obj)
3740{
3741    QapiDeallocVisitor *md;
3742    Visitor *v;
3743
3744    if (!obj) {
3745        return;
3746    }
3747
3748    md = qapi_dealloc_visitor_new();
3749    v = qapi_dealloc_get_visitor(md);
3750    visit_type_BlockdevCacheOptionsList(v, &obj, NULL, NULL);
3751    qapi_dealloc_visitor_cleanup(md);
3752}
3753
3754
3755void qapi_free_BlockdevCacheOptions(BlockdevCacheOptions * obj)
3756{
3757    QapiDeallocVisitor *md;
3758    Visitor *v;
3759
3760    if (!obj) {
3761        return;
3762    }
3763
3764    md = qapi_dealloc_visitor_new();
3765    v = qapi_dealloc_get_visitor(md);
3766    visit_type_BlockdevCacheOptions(v, &obj, NULL, NULL);
3767    qapi_dealloc_visitor_cleanup(md);
3768}
3769
3770
3771void qapi_free_BlockdevOptionsBaseList(BlockdevOptionsBaseList * obj)
3772{
3773    QapiDeallocVisitor *md;
3774    Visitor *v;
3775
3776    if (!obj) {
3777        return;
3778    }
3779
3780    md = qapi_dealloc_visitor_new();
3781    v = qapi_dealloc_get_visitor(md);
3782    visit_type_BlockdevOptionsBaseList(v, &obj, NULL, NULL);
3783    qapi_dealloc_visitor_cleanup(md);
3784}
3785
3786
3787void qapi_free_BlockdevOptionsBase(BlockdevOptionsBase * obj)
3788{
3789    QapiDeallocVisitor *md;
3790    Visitor *v;
3791
3792    if (!obj) {
3793        return;
3794    }
3795
3796    md = qapi_dealloc_visitor_new();
3797    v = qapi_dealloc_get_visitor(md);
3798    visit_type_BlockdevOptionsBase(v, &obj, NULL, NULL);
3799    qapi_dealloc_visitor_cleanup(md);
3800}
3801
3802
3803void qapi_free_BlockdevOptionsFileList(BlockdevOptionsFileList * obj)
3804{
3805    QapiDeallocVisitor *md;
3806    Visitor *v;
3807
3808    if (!obj) {
3809        return;
3810    }
3811
3812    md = qapi_dealloc_visitor_new();
3813    v = qapi_dealloc_get_visitor(md);
3814    visit_type_BlockdevOptionsFileList(v, &obj, NULL, NULL);
3815    qapi_dealloc_visitor_cleanup(md);
3816}
3817
3818
3819void qapi_free_BlockdevOptionsFile(BlockdevOptionsFile * obj)
3820{
3821    QapiDeallocVisitor *md;
3822    Visitor *v;
3823
3824    if (!obj) {
3825        return;
3826    }
3827
3828    md = qapi_dealloc_visitor_new();
3829    v = qapi_dealloc_get_visitor(md);
3830    visit_type_BlockdevOptionsFile(v, &obj, NULL, NULL);
3831    qapi_dealloc_visitor_cleanup(md);
3832}
3833
3834
3835void qapi_free_BlockdevOptionsVVFATList(BlockdevOptionsVVFATList * obj)
3836{
3837    QapiDeallocVisitor *md;
3838    Visitor *v;
3839
3840    if (!obj) {
3841        return;
3842    }
3843
3844    md = qapi_dealloc_visitor_new();
3845    v = qapi_dealloc_get_visitor(md);
3846    visit_type_BlockdevOptionsVVFATList(v, &obj, NULL, NULL);
3847    qapi_dealloc_visitor_cleanup(md);
3848}
3849
3850
3851void qapi_free_BlockdevOptionsVVFAT(BlockdevOptionsVVFAT * obj)
3852{
3853    QapiDeallocVisitor *md;
3854    Visitor *v;
3855
3856    if (!obj) {
3857        return;
3858    }
3859
3860    md = qapi_dealloc_visitor_new();
3861    v = qapi_dealloc_get_visitor(md);
3862    visit_type_BlockdevOptionsVVFAT(v, &obj, NULL, NULL);
3863    qapi_dealloc_visitor_cleanup(md);
3864}
3865
3866
3867void qapi_free_BlockdevOptionsGenericFormatList(BlockdevOptionsGenericFormatList * obj)
3868{
3869    QapiDeallocVisitor *md;
3870    Visitor *v;
3871
3872    if (!obj) {
3873        return;
3874    }
3875
3876    md = qapi_dealloc_visitor_new();
3877    v = qapi_dealloc_get_visitor(md);
3878    visit_type_BlockdevOptionsGenericFormatList(v, &obj, NULL, NULL);
3879    qapi_dealloc_visitor_cleanup(md);
3880}
3881
3882
3883void qapi_free_BlockdevOptionsGenericFormat(BlockdevOptionsGenericFormat * obj)
3884{
3885    QapiDeallocVisitor *md;
3886    Visitor *v;
3887
3888    if (!obj) {
3889        return;
3890    }
3891
3892    md = qapi_dealloc_visitor_new();
3893    v = qapi_dealloc_get_visitor(md);
3894    visit_type_BlockdevOptionsGenericFormat(v, &obj, NULL, NULL);
3895    qapi_dealloc_visitor_cleanup(md);
3896}
3897
3898
3899void qapi_free_BlockdevOptionsGenericCOWFormatList(BlockdevOptionsGenericCOWFormatList * obj)
3900{
3901    QapiDeallocVisitor *md;
3902    Visitor *v;
3903
3904    if (!obj) {
3905        return;
3906    }
3907
3908    md = qapi_dealloc_visitor_new();
3909    v = qapi_dealloc_get_visitor(md);
3910    visit_type_BlockdevOptionsGenericCOWFormatList(v, &obj, NULL, NULL);
3911    qapi_dealloc_visitor_cleanup(md);
3912}
3913
3914
3915void qapi_free_BlockdevOptionsGenericCOWFormat(BlockdevOptionsGenericCOWFormat * obj)
3916{
3917    QapiDeallocVisitor *md;
3918    Visitor *v;
3919
3920    if (!obj) {
3921        return;
3922    }
3923
3924    md = qapi_dealloc_visitor_new();
3925    v = qapi_dealloc_get_visitor(md);
3926    visit_type_BlockdevOptionsGenericCOWFormat(v, &obj, NULL, NULL);
3927    qapi_dealloc_visitor_cleanup(md);
3928}
3929
3930
3931void qapi_free_BlockdevOptionsQcow2List(BlockdevOptionsQcow2List * obj)
3932{
3933    QapiDeallocVisitor *md;
3934    Visitor *v;
3935
3936    if (!obj) {
3937        return;
3938    }
3939
3940    md = qapi_dealloc_visitor_new();
3941    v = qapi_dealloc_get_visitor(md);
3942    visit_type_BlockdevOptionsQcow2List(v, &obj, NULL, NULL);
3943    qapi_dealloc_visitor_cleanup(md);
3944}
3945
3946
3947void qapi_free_BlockdevOptionsQcow2(BlockdevOptionsQcow2 * obj)
3948{
3949    QapiDeallocVisitor *md;
3950    Visitor *v;
3951
3952    if (!obj) {
3953        return;
3954    }
3955
3956    md = qapi_dealloc_visitor_new();
3957    v = qapi_dealloc_get_visitor(md);
3958    visit_type_BlockdevOptionsQcow2(v, &obj, NULL, NULL);
3959    qapi_dealloc_visitor_cleanup(md);
3960}
3961
3962
3963void qapi_free_BlockdevOptionsList(BlockdevOptionsList * obj)
3964{
3965    QapiDeallocVisitor *md;
3966    Visitor *v;
3967
3968    if (!obj) {
3969        return;
3970    }
3971
3972    md = qapi_dealloc_visitor_new();
3973    v = qapi_dealloc_get_visitor(md);
3974    visit_type_BlockdevOptionsList(v, &obj, NULL, NULL);
3975    qapi_dealloc_visitor_cleanup(md);
3976}
3977
3978
3979void qapi_free_BlockdevOptions(BlockdevOptions * obj)
3980{
3981    QapiDeallocVisitor *md;
3982    Visitor *v;
3983
3984    if (!obj) {
3985        return;
3986    }
3987
3988    md = qapi_dealloc_visitor_new();
3989    v = qapi_dealloc_get_visitor(md);
3990    visit_type_BlockdevOptions(v, &obj, NULL, NULL);
3991    qapi_dealloc_visitor_cleanup(md);
3992}
3993
3994
3995void qapi_free_BlockdevRefList(BlockdevRefList * obj)
3996{
3997    QapiDeallocVisitor *md;
3998    Visitor *v;
3999
4000    if (!obj) {
4001        return;
4002    }
4003
4004    md = qapi_dealloc_visitor_new();
4005    v = qapi_dealloc_get_visitor(md);
4006    visit_type_BlockdevRefList(v, &obj, NULL, NULL);
4007    qapi_dealloc_visitor_cleanup(md);
4008}
4009
4010
4011void qapi_free_BlockdevRef(BlockdevRef * obj)
4012{
4013    QapiDeallocVisitor *md;
4014    Visitor *v;
4015
4016    if (!obj) {
4017        return;
4018    }
4019
4020    md = qapi_dealloc_visitor_new();
4021    v = qapi_dealloc_get_visitor(md);
4022    visit_type_BlockdevRef(v, &obj, NULL, NULL);
4023    qapi_dealloc_visitor_cleanup(md);
4024}
4025
4026