diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-03-28 00:27:03 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-03-28 00:27:03 +0000 |
commit | 21e87a963fdbed79b03e3abe614330cb6a9c5c2f (patch) | |
tree | 8106c7d217677c1e1d5a11c7f06bb8605652305f /epan/emem.h | |
parent | 446d43351ce4f4b03cc9b85831445d7e48e72dc6 (diff) |
Replace a lot of pointer tracking and some GStrings with emem_strbufs. Add
ep_strbuf_printf and ep_strbuf_append_c.
svn path=/trunk/; revision=27873
Diffstat (limited to 'epan/emem.h')
-rw-r--r-- | epan/emem.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/epan/emem.h b/epan/emem.h index c75ca71693..4778538fa0 100644 --- a/epan/emem.h +++ b/epan/emem.h @@ -422,6 +422,15 @@ emem_strbuf_t *ep_strbuf_sized_new(gsize len, gsize max_len); void ep_strbuf_append_vprintf(emem_strbuf_t *strbuf, const gchar *format, va_list ap); /** + * Apply printf-style formatted text to a string buffer. + * + * @param strbuf The ep_strbuf-allocated string buffer to set to. + * @param format A printf-style string format. + */ +void ep_strbuf_printf(emem_strbuf_t *strbuf, const gchar *format, ...) + GNUC_FORMAT_CHECK(printf, 2, 3); + +/** * Append printf-style formatted text to a string buffer. * * @param strbuf The ep_strbuf-allocated string buffer to append to. @@ -439,6 +448,14 @@ void ep_strbuf_append_printf(emem_strbuf_t *strbuf, const gchar *format, ...) void ep_strbuf_append(emem_strbuf_t *strbuf, const gchar *str); /** + * Append a character to a string buffer. + * + * @param strbuf The ep_strbuf-allocated string buffer to append to. + * @param c The character to append. + */ +void ep_strbuf_append_c(emem_strbuf_t *strbuf, const gchar c); + +/** * Chop off the end of a string buffer. * * @param strbuf The ep_strbuf-allocated string buffer to append to. |