mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03: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
|
@ -105,17 +105,6 @@ void qstring_append_chr(QString *qstring, int c)
|
|||
qstring->string[qstring->length] = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* qobject_to_qstring(): Convert a QObject to a QString
|
||||
*/
|
||||
QString *qobject_to_qstring(const QObject *obj)
|
||||
{
|
||||
if (!obj || qobject_type(obj) != QTYPE_QSTRING) {
|
||||
return NULL;
|
||||
}
|
||||
return container_of(obj, QString, base);
|
||||
}
|
||||
|
||||
/**
|
||||
* qstring_get_str(): Return a pointer to the stored string
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue