mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qapi: Remove qobject_to_X() functions
They are no longer needed now. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-Id: <20180224154033.29559-5-mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
7dc847ebba
commit
cb51b976ba
10 changed files with 0 additions and 60 deletions
|
@ -39,17 +39,6 @@ bool qbool_get_bool(const QBool *qb)
|
|||
return qb->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* qobject_to_qbool(): Convert a QObject into a QBool
|
||||
*/
|
||||
QBool *qobject_to_qbool(const QObject *obj)
|
||||
{
|
||||
if (!obj || qobject_type(obj) != QTYPE_QBOOL) {
|
||||
return NULL;
|
||||
}
|
||||
return container_of(obj, QBool, base);
|
||||
}
|
||||
|
||||
/**
|
||||
* qbool_is_equal(): Test whether the two QBools are equal
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue