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:
Luiz Capitulino 2009-08-28 15:27:06 -03:00 committed by Anthony Liguori
parent 6b8d1ece70
commit 66f7048712
4 changed files with 90 additions and 1 deletions

View file

@ -38,6 +38,7 @@
typedef enum {
QTYPE_NONE,
QTYPE_QINT,
QTYPE_QSTRING,
} qtype_code;
struct QObject;