mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Introduce QString
QString is a high-level data type that can be used to represent C strings. The following functions are available: - qstring_from_str() Create a new QString - qstring_get_str() Get a pointer to the stored string Note that qstring_get_str() is too low-level for a data type like this, but it's interesting for quick read-only accesses. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6b8d1ece70
commit
66f7048712
4 changed files with 90 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
|||
typedef enum {
|
||||
QTYPE_NONE,
|
||||
QTYPE_QINT,
|
||||
QTYPE_QSTRING,
|
||||
} qtype_code;
|
||||
|
||||
struct QObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue