]> git.proxmox.com Git - qemu.git/blame - qstring.h
QJSON: Introduce qobject_from_jsonv()
[qemu.git] / qstring.h
CommitLineData
66f70487
LC
1#ifndef QSTRING_H
2#define QSTRING_H
3
4#include "qobject.h"
5
6typedef struct QString {
7 QObject_HEAD;
8 char *string;
d30ec846
AL
9 size_t length;
10 size_t capacity;
66f70487
LC
11} QString;
12
d30ec846 13QString *qstring_new(void);
66f70487
LC
14QString *qstring_from_str(const char *str);
15const char *qstring_get_str(const QString *qstring);
d30ec846 16void qstring_append(QString *qstring, const char *str);
66f70487
LC
17QString *qobject_to_qstring(const QObject *obj);
18
19#endif /* QSTRING_H */