4 * Copyright (C) 2009 Red Hat Inc.
7 * Luiz Capitulino <lcapitulino@redhat.com>
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.
16 #include "qapi/qmp/qobject.h"
19 struct QObjectBase_ base
;
23 void qstring_unref(QString
*q
);
25 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QString
, qstring_unref
)
27 QString
*qstring_new(void);
28 QString
*qstring_from_str(const char *str
);
29 QString
*qstring_from_substr(const char *str
, size_t start
, size_t end
);
30 QString
*qstring_from_gstring(GString
*gstr
);
31 const char *qstring_get_str(const QString
*qstring
);
33 #endif /* QSTRING_H */