diff options
author | Jakub Zawadzki <darkjames@darkjames.pl> | 2014-06-21 23:06:54 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-06-23 03:33:59 +0000 |
commit | 6e0be0173b2037df2653e2a9d47e0213eda386f7 (patch) | |
tree | 82d60bc21de9e6bfbbfb39cf2c9a789dd7be4b2c /epan/column-utils.h | |
parent | ab6a45aec605c4694b9094a7a9ace16e7e66c484 (diff) |
Add col_append_lstr(), speedup column generation for TCP.
When dissecting with columns TCP dissector spends
around 1/4 time in col_append_fstr(), add col_append_lstr()
and do formatting by ourselves.
Change-Id: If90bc26242761884b4991e8db0db62c8f9e32690
Reviewed-on: https://code.wireshark.org/review/2527
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/column-utils.h')
-rw-r--r-- | epan/column-utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/column-utils.h b/epan/column-utils.h index 3a4587fb90..331bdf517f 100644 --- a/epan/column-utils.h +++ b/epan/column-utils.h @@ -269,6 +269,12 @@ gboolean col_based_on_frame_data(column_info *cinfo, const gint col); */ WS_DLL_PUBLIC void col_append_str(column_info *cinfo, const gint col, const gchar *str); +/* Append the given strings (terminated by COL_ADD_LSTR_TERMINATOR) to a column element, + * + * Same result as col_append_str() called for every string element. + */ +WS_DLL_PUBLIC void col_append_lstr(column_info *cinfo, const gint el, const gchar *str, ...); + /** Append the given text to a column element, the text will be formatted and copied. * * Same function as col_append_str() but using a printf-like format string. |