[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qapi: qmp-marshal-types.c and qmp-marshal-types.h
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH] qapi: qmp-marshal-types.c and qmp-marshal-types.h |
Date: |
Sun, 6 Mar 2011 19:27:46 -0600 |
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
- [Qemu-devel] [PATCH 01/22] Add hard build dependency on glib, (continued)
- [Qemu-devel] [PATCH 01/22] Add hard build dependency on glib, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH 20/22] qapi: add code generator for libqmp, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH 04/22] qerror: split out the reporting bits of QError, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH 08/22] qapi: add code generator for qmp-types, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH 09/22] qapi: add code generator for type marshallers, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH 05/22] qerror: add new error message for invalid enum values, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH] qapi: qmp-types.c and qmp-types.h, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH] qapi: qmp-marshal-types.c and qmp-marshal-types.h,
Anthony Liguori <=
- [Qemu-devel] [PATCH] qapi: add qmp-marshal.c and qmp.h, Anthony Liguori, 2011/03/06
- [Qemu-devel] [PATCH] qapi: add libqmp.c and libqmp.h, Anthony Liguori, 2011/03/06
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Stefan Hajnoczi, 2011/03/07
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Anthony Liguori, 2011/03/07
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Avi Kivity, 2011/03/08
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Anthony Liguori, 2011/03/08
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Avi Kivity, 2011/03/08
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Anthony Liguori, 2011/03/08
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Avi Kivity, 2011/03/08
- Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1, Anthony Liguori, 2011/03/08