diff options
author | Markus Armbruster | 2020-12-11 18:11:40 +0100 |
---|---|---|
committer | Markus Armbruster | 2020-12-19 10:38:43 +0100 |
commit | 80d71121b719c610c7f6e05c932c35ded4cc92d4 (patch) | |
tree | 8e67c0dc358bcd1e9b9c7bbf3cbf5105f2441d2e /include/qapi/qmp/qobject.h | |
parent | hw/rdma: Replace QList by GQueue (diff) | |
download | qemu-80d71121b719c610c7f6e05c932c35ded4cc92d4.tar.gz qemu-80d71121b719c610c7f6e05c932c35ded4cc92d4.tar.xz qemu-80d71121b719c610c7f6e05c932c35ded4cc92d4.zip |
qobject: Move internals to qobject-internal.h
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201211171152.146877-9-armbru@redhat.com>
Diffstat (limited to 'include/qapi/qmp/qobject.h')
-rw-r--r-- | include/qapi/qmp/qobject.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/qapi/qmp/qobject.h b/include/qapi/qmp/qobject.h index fcfd549220..9003b71fd3 100644 --- a/include/qapi/qmp/qobject.h +++ b/include/qapi/qmp/qobject.h @@ -64,14 +64,6 @@ QEMU_BUILD_BUG_MSG(QTYPE__MAX != 7, #define qobject_to(type, obj) \ ((type *)qobject_check_type(obj, glue(QTYPE_CAST_TO_, type))) -/* Initialize an object to default values */ -static inline void qobject_init(QObject *obj, QType type) -{ - assert(QTYPE_NONE < type && type < QTYPE__MAX); - obj->base.refcnt = 1; - obj->base.type = type; -} - static inline void qobject_ref_impl(QObject *obj) { if (obj) { @@ -90,6 +82,7 @@ bool qobject_is_equal(const QObject *x, const QObject *y); /** * qobject_destroy(): Free resources used by the object + * For use via qobject_unref() only! */ void qobject_destroy(QObject *obj); |