diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-11-18 23:05:27 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:19 -0600 |
commit | 4b5c5766d0ee4cbe70642977530f753678ebcfce (patch) | |
tree | bfdced5b743d0fdc3598c120447546d2a7147653 /qstring.h | |
parent | 764c1caeb32bae139ce3984cba987e328a66e2ab (diff) | |
download | hqemu-4b5c5766d0ee4cbe70642977530f753678ebcfce.zip hqemu-4b5c5766d0ee4cbe70642977530f753678ebcfce.tar.gz |
QString: Introduce qstring_from_substr()
Note that we can now write qstring_from_str() as a wrapper.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qstring.h')
-rw-r--r-- | qstring.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13,6 +13,7 @@ typedef struct QString { QString *qstring_new(void); QString *qstring_from_str(const char *str); +QString *qstring_from_substr(const char *str, int start, int end); const char *qstring_get_str(const QString *qstring); void qstring_append_int(QString *qstring, int64_t value); void qstring_append(QString *qstring, const char *str); |