mirror of
https://github.com/qemu/qemu.git
synced 2024-12-01 07:43:35 +08:00
47c6d3ecdf
A NULL qobj can occur when a parameter is fetched via qdict_get, but the parameter is not in the command. By returning NULL, the caller can choose whether to raise a missing parameter error, an invalid parameter type error, or use a default value. For example, qom-set could can use this to reset a property to its default value, though at this time it will fail with "Invalid parameter type". In any case, anything is better than crashing! Reviewed-by: Anthony Liguori <anthony@codemonkey.ws> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> |
||
---|---|---|
.. | ||
qapi-dealloc-visitor.c | ||
qapi-dealloc-visitor.h | ||
qapi-types-core.h | ||
qapi-visit-core.c | ||
qapi-visit-core.h | ||
qmp-core.h | ||
qmp-dispatch.c | ||
qmp-input-visitor.c | ||
qmp-input-visitor.h | ||
qmp-output-visitor.c | ||
qmp-output-visitor.h | ||
qmp-registry.c |