This is not to be committed.

diff --git a/qmp-marshal-types.c b/qmp-marshal-types.c
new file mode 100644
index 0000000..c3ab141
--- /dev/null
+++ b/qmp-marshal-types.c
@@ -0,0 +1,77 @@
+/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT */
+
+#include "qmp-marshal-types.h"
+#include "qerror.h"
+
+
+QObject *qmp_marshal_type_VersionInfo(struct VersionInfo * src)
+{
+    QObject *qmp__retval;
+    {
+        QDict *qmp__dict = qdict_new();
+        QObject *qmp__member0;
+
+        {
+            QDict *qmp__dict = qdict_new();
+            QObject *qmp__member1;
+
+            qmp__member1 = qmp_marshal_type_int(src->qemu.major);
+            qdict_put_obj(qmp__dict, "major", qmp__member1);
+
+            qmp__member1 = qmp_marshal_type_int(src->qemu.minor);
+            qdict_put_obj(qmp__dict, "minor", qmp__member1);
+
+            qmp__member1 = qmp_marshal_type_int(src->qemu.micro);
+            qdict_put_obj(qmp__dict, "micro", qmp__member1);
+
+            qmp__member0 = QOBJECT(qmp__dict);
+        }
+        qdict_put_obj(qmp__dict, "qemu", qmp__member0);
+
+        qmp__member0 = qmp_marshal_type_str(src->package);
+        qdict_put_obj(qmp__dict, "package", qmp__member0);
+
+        qmp__retval = QOBJECT(qmp__dict);
+    }
+    return qmp__retval;
+}
+
+struct VersionInfo * qmp_unmarshal_type_VersionInfo(QObject *src, Error **errp)
+{
+    Error *qmp__err = NULL;
+    struct VersionInfo * qmp__retval = qmp_alloc_version_info();
+    {
+        QDict *qmp__dict = qobject_to_qdict(src);
+        QObject *qmp__object0;
+        qmp__object0 = qdict_get(qmp__dict, "qemu");
+        {
+            QDict *qmp__dict = qobject_to_qdict(qmp__object0);
+            QObject *qmp__object1;
+            qmp__object1 = qdict_get(qmp__dict, "major");
+            qmp__retval->qemu.major = qmp_unmarshal_type_int(qmp__object1, 
&qmp__err);
+            if (qmp__err) {
+                goto qmp__err_out;
+            }
+            qmp__object1 = qdict_get(qmp__dict, "minor");
+            qmp__retval->qemu.minor = qmp_unmarshal_type_int(qmp__object1, 
&qmp__err);
+            if (qmp__err) {
+                goto qmp__err_out;
+            }
+            qmp__object1 = qdict_get(qmp__dict, "micro");
+            qmp__retval->qemu.micro = qmp_unmarshal_type_int(qmp__object1, 
&qmp__err);
+            if (qmp__err) {
+                goto qmp__err_out;
+            }
+        }
+        qmp__object0 = qdict_get(qmp__dict, "package");
+        qmp__retval->package = qmp_unmarshal_type_str(qmp__object0, &qmp__err);
+        if (qmp__err) {
+            goto qmp__err_out;
+        }
+    }
+    return qmp__retval;
+qmp__err_out:
+    error_propagate(errp, qmp__err);
+    qmp_free_version_info(qmp__retval);
+    return NULL;
+}
diff --git a/qmp-marshal-types.h b/qmp-marshal-types.h
new file mode 100644
index 0000000..ce4f6ea
--- /dev/null
+++ b/qmp-marshal-types.h
@@ -0,0 +1,11 @@
+/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT */
+#ifndef QMP_MARSHAL_TYPES_H
+#define QMP_MARSHAL_TYPES_H
+
+#include "qmp-marshal-types-core.h"
+
+
+
+QObject *qmp_marshal_type_VersionInfo(struct VersionInfo * src);
+struct VersionInfo * qmp_unmarshal_type_VersionInfo(QObject *src, Error 
**errp);
+#endif
-- 
1.7.0.4


Reply via email to