]> git.proxmox.com Git - mirror_qemu.git/blame - qstring.h
target-mips: Pass MIPSCPU to mips_vpe_is_wfi()
[mirror_qemu.git] / qstring.h
CommitLineData
41836a9f
LC
1/*
2 * QString Module
3 *
4 * Copyright (C) 2009 Red Hat Inc.
5 *
6 * Authors:
7 * Luiz Capitulino <lcapitulino@redhat.com>
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 */
12
66f70487
LC
13#ifndef QSTRING_H
14#define QSTRING_H
15
764c1cae 16#include <stdint.h>
66f70487
LC
17#include "qobject.h"
18
19typedef struct QString {
20 QObject_HEAD;
21 char *string;
d30ec846
AL
22 size_t length;
23 size_t capacity;
66f70487
LC
24} QString;
25
d30ec846 26QString *qstring_new(void);
66f70487 27QString *qstring_from_str(const char *str);
4b5c5766 28QString *qstring_from_substr(const char *str, int start, int end);
66f70487 29const char *qstring_get_str(const QString *qstring);
764c1cae 30void qstring_append_int(QString *qstring, int64_t value);
d30ec846 31void qstring_append(QString *qstring, const char *str);
6fe9565c 32void qstring_append_chr(QString *qstring, int c);
66f70487
LC
33QString *qobject_to_qstring(const QObject *obj);
34
35#endif /* QSTRING_H */