root / qstring.h @ dd4239d6
History | View | Annotate | Download (426 Bytes)
1 | 66f70487 | Luiz Capitulino | #ifndef QSTRING_H
|
---|---|---|---|
2 | 66f70487 | Luiz Capitulino | #define QSTRING_H
|
3 | 66f70487 | Luiz Capitulino | |
4 | 66f70487 | Luiz Capitulino | #include "qobject.h" |
5 | 66f70487 | Luiz Capitulino | |
6 | 66f70487 | Luiz Capitulino | typedef struct QString { |
7 | 66f70487 | Luiz Capitulino | QObject_HEAD; |
8 | 66f70487 | Luiz Capitulino | char *string;
|
9 | d30ec846 | Anthony Liguori | size_t length; |
10 | d30ec846 | Anthony Liguori | size_t capacity; |
11 | 66f70487 | Luiz Capitulino | } QString; |
12 | 66f70487 | Luiz Capitulino | |
13 | d30ec846 | Anthony Liguori | QString *qstring_new(void);
|
14 | 66f70487 | Luiz Capitulino | QString *qstring_from_str(const char *str); |
15 | 66f70487 | Luiz Capitulino | const char *qstring_get_str(const QString *qstring); |
16 | d30ec846 | Anthony Liguori | void qstring_append(QString *qstring, const char *str); |
17 | 66f70487 | Luiz Capitulino | QString *qobject_to_qstring(const QObject *obj);
|
18 | 66f70487 | Luiz Capitulino | |
19 | 66f70487 | Luiz Capitulino | #endif /* QSTRING_H */ |