mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
qapi: Use QNull for a more regular visit_type_null()
Make visit_type_null() take an @obj argument like its buddies. This helps keep the next commit simple. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
006ca09f30
commit
d2f95f4d48
15 changed files with 60 additions and 25 deletions
|
@ -618,10 +618,10 @@ void visit_type_any(Visitor *v, const char *name, QObject **obj, Error **errp);
|
|||
* @name expresses the relationship of the null value to its parent
|
||||
* container; see the general description of @name above.
|
||||
*
|
||||
* Unlike all other visit_type_* functions, no obj parameter is
|
||||
* needed; rather, this is a witness that an explicit null value is
|
||||
* expected rather than any other type.
|
||||
* @obj must be non-NULL. Input visitors set *@obj to the value;
|
||||
* other visitors ignore *@obj.
|
||||
*/
|
||||
void visit_type_null(Visitor *v, const char *name, Error **errp);
|
||||
void visit_type_null(Visitor *v, const char *name, QNull **obj,
|
||||
Error **errp);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue