tcg: initial mips support
[qemu/stefanha.git] / qstring.h
blob65905d457fe1a7cbce506da99b3545c719750cb9
1 #ifndef QSTRING_H
2 #define QSTRING_H
4 #include "qobject.h"
6 typedef struct QString {
7 QObject_HEAD;
8 char *string;
9 size_t length;
10 size_t capacity;
11 } QString;
13 QString *qstring_new(void);
14 QString *qstring_from_str(const char *str);
15 const char *qstring_get_str(const QString *qstring);
16 void qstring_append(QString *qstring, const char *str);
17 QString *qobject_to_qstring(const QObject *obj);
19 #endif /* QSTRING_H */