1/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
2
3/*
4 * Schema-defined QAPI visitors
5 *
6 * Copyright IBM, Corp. 2011
7 * Copyright (C) 2014-2018 Red Hat, Inc.
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 */
12
13#include "qemu/osdep.h"
14#include "qapi/error.h"
15#include "qapi/qmp/qerror.h"
16#include "qapi-visit-qdev.h"
17
18void visit_type_q_obj_device_list_properties_arg_members(Visitor *v, q_obj_device_list_properties_arg *obj, Error **errp)
19{
20 Error *err = NULL;
21
22 visit_type_str(v, "typename", &obj->q_typename, &err);
23 if (err) {
24 goto out;
25 }
26
27out:
28 error_propagate(errp, err);
29}
30
31void visit_type_q_obj_device_add_arg_members(Visitor *v, q_obj_device_add_arg *obj, Error **errp)
32{
33 Error *err = NULL;
34
35 visit_type_str(v, "driver", &obj->driver, &err);
36 if (err) {
37 goto out;
38 }
39 if (visit_optional(v, "bus", &obj->has_bus)) {
40 visit_type_str(v, "bus", &obj->bus, &err);
41 if (err) {
42 goto out;
43 }
44 }
45 if (visit_optional(v, "id", &obj->has_id)) {
46 visit_type_str(v, "id", &obj->id, &err);
47 if (err) {
48 goto out;
49 }
50 }
51
52out:
53 error_propagate(errp, err);
54}
55
56void visit_type_q_obj_device_del_arg_members(Visitor *v, q_obj_device_del_arg *obj, Error **errp)
57{
58 Error *err = NULL;
59
60 visit_type_str(v, "id", &obj->id, &err);
61 if (err) {
62 goto out;
63 }
64
65out:
66 error_propagate(errp, err);
67}
68
69void visit_type_q_obj_DEVICE_DELETED_arg_members(Visitor *v, q_obj_DEVICE_DELETED_arg *obj, Error **errp)
70{
71 Error *err = NULL;
72
73 if (visit_optional(v, "device", &obj->has_device)) {
74 visit_type_str(v, "device", &obj->device, &err);
75 if (err) {
76 goto out;
77 }
78 }
79 visit_type_str(v, "path", &obj->path, &err);
80 if (err) {
81 goto out;
82 }
83
84out:
85 error_propagate(errp, err);
86}
87
88/* Dummy declaration to prevent empty .o file */
89char qapi_dummy_qapi_visit_qdev_c;
90