#include "sys-queue.h"
#include "qemu-common.h"
-static const QType qdict_type;
+static void qdict_destroy_obj(QObject *obj);
+
+static const QType qdict_type = {
+ .code = QTYPE_QDICT,
+ .destroy = qdict_destroy_obj,
+};
/**
* qdict_new(): Create a new QDict
qemu_free(qdict);
}
-
-static const QType qdict_type = {
- .code = QTYPE_QDICT,
- .destroy = qdict_destroy_obj,
-};
#include "qobject.h"
#include "qemu-common.h"
-static const QType qint_type;
+static void qint_destroy_obj(QObject *obj);
+
+static const QType qint_type = {
+ .code = QTYPE_QINT,
+ .destroy = qint_destroy_obj,
+};
/**
* qint_from_int(): Create a new QInt from an int64_t
assert(obj != NULL);
qemu_free(qobject_to_qint(obj));
}
-
-static const QType qint_type = {
- .code = QTYPE_QINT,
- .destroy = qint_destroy_obj,
-};
#include "qstring.h"
#include "qemu-common.h"
-static const QType qstring_type;
+static void qstring_destroy_obj(QObject *obj);
+
+static const QType qstring_type = {
+ .code = QTYPE_QSTRING,
+ .destroy = qstring_destroy_obj,
+};
/**
* qstring_from_str(): Create a new QString from a regular C string
qemu_free(qs->string);
qemu_free(qs);
}
-
-static const QType qstring_type = {
- .code = QTYPE_QSTRING,
- .destroy = qstring_destroy_obj,
-};