qobject: Make conversion from QObject * accept null
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | qobject: Drop QObject_HEADinclude/ include/ include/ +4 more | +6 | 1 reply | |
| 2/6 | qbool: Make conversion from QObject * accept nullqapi/ qobject/ qobject/ | +8 | 1 reply | |
| 3/6 | qdict: Make conversion from QObject * accept nullqga/ qobject/ | +6 | 1 reply | |
| 4/6 | qfloat qint: Make conversion from QObject * accept nullqapi/ qobject/ qobject/ +1 more | +23 | 1 reply | |
| 5/6 | qlist: Make conversion from QObject * accept nullqobject/ | +1 | 1 reply | |
| 6/6 | qstring: Make conversion from QObject * accept nullqapi/ qobject/ qobject/ | +8 | 1 reply |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Eric Blake | Luiz Capitulino |
|---|---|---|
| Series | R-b | |
| 1/6 | R-b | |
| 2/6 | R-b | |
| 3/6 | R-b | |
| 4/6 | R-b | |
| 5/6 | R-b | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH 0/6] qobject: Make conversion from QObject * accept null
The qobject_to_FOO() crash on null, which is a trap for the unwary. Return null instead, and simplify a few callers.
Throw in a patch to drop QObject_HEAD.
Luiz, I'm happy to take this through my tree, since got a QMP series based on it (to be posted shortly).
Markus Armbruster (6):
qobject: Drop QObject_HEAD
qbool: Make conversion from QObject * accept null
qdict: Make conversion from QObject * accept null qfloat qint: Make conversion from QObject * accept null
qlist: Make conversion from QObject * accept null
qstring: Make conversion from QObject * accept null
include/qapi/qmp/qbool.h | 2 +- include/qapi/qmp/qdict.h | 2 +- include/qapi/qmp/qfloat.h | 2 +- include/qapi/qmp/qint.h | 2 +- include/qapi/qmp/qlist.h | 2 +- include/qapi/qmp/qobject.h | 4 ---- include/qapi/qmp/qstring.h | 2 +- qapi/qmp-input-visitor.c | 40 ++++++++++++++++++++++------------------ qga/main.c | 11 +++-------- qobject/qbool.c | 4 ++-- qobject/qdict.c | 39 ++++++++++++--------------------------- qobject/qfloat.c | 4 ++-- qobject/qint.c | 4 ++-- qobject/qlist.c | 3 +-- qobject/qstring.c | 4 ++-- 15 files changed, 52 insertions(+), 73 deletions(-)
Signature · 1 line
2.4.3