aboutsummaryrefslogtreecommitdiffstats
path: root/qstring.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-11-18 23:05:27 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:19 -0600
commit4b5c5766d0ee4cbe70642977530f753678ebcfce (patch)
treebfdced5b743d0fdc3598c120447546d2a7147653 /qstring.h
parent764c1caeb32bae139ce3984cba987e328a66e2ab (diff)
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qstring.h b/qstring.h
index c065331f3..6aaa7d5c8 100644
--- a/qstring.h
+++ b/qstring.h
@@ -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);