From 3cf42b8b3af1bd61e736a9ca0f94806c7931ae56 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Mon, 5 Mar 2018 18:29:50 +0100 Subject: qlit: add qobject_from_qlit() Instantiate a QObject* from a literal QLitObject. LitObject only supports int64_t for now. uint64_t and double aren't implemented. Signed-off-by: Marc-André Lureau Reviewed-by: Markus Armbruster Message-Id: <20180305172951.2150-4-marcandre.lureau@redhat.com> Signed-off-by: Eric Blake --- include/qapi/qmp/qlit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/qapi/qmp') diff --git a/include/qapi/qmp/qlit.h b/include/qapi/qmp/qlit.h index f1ed082df8..c0676d5daf 100644 --- a/include/qapi/qmp/qlit.h +++ b/include/qapi/qmp/qlit.h @@ -50,4 +50,6 @@ struct QLitDictEntry { bool qlit_equal_qobject(const QLitObject *lhs, const QObject *rhs); +QObject *qobject_from_qlit(const QLitObject *qlit); + #endif /* QLIT_H */ -- cgit v1.2.3-55-g7522