diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2008-02-13 05:05:33 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2008-02-13 05:05:33 +0000 |
commit | 8f3a1b0d16653c2e6a209680164b39910973e08d (patch) | |
tree | 39e564efcec404832a0276bcb5f4688f0a34333f /epan/column-utils.h | |
parent | 7a6d8d7955a1fc471790b949eb027b770fb43cdb (diff) |
Check in changes originally checked in as SVN revision 24308 (new column
type: Custom) that were backed out in SVN revision 24309.
Changes since that revision include a reworking of the handling of the
cfile/cinfo variables in epan/column-utils.c, addition of three new
functions to libwireshark.def and a bug fix to prevent a crash when no
custom columns were not in use.
Compilation verified locally on MacOS X, Linux and Windows.
svn path=/trunk/; revision=24317
Diffstat (limited to 'epan/column-utils.h')
-rw-r--r-- | epan/column-utils.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/column-utils.h b/epan/column-utils.h index 946df43680..cfac09786e 100644 --- a/epan/column-utils.h +++ b/epan/column-utils.h @@ -30,6 +30,7 @@ #include "gnuc_format_check.h" #include "column_info.h" #include "packet_info.h" +#include <epan/epan.h> #ifdef __cplusplus extern "C" { @@ -142,6 +143,16 @@ extern void col_add_str(column_info *cinfo, gint col, const gchar *str); extern void col_add_fstr(column_info *cinfo, gint col, const gchar *format, ...) GNUC_FORMAT_CHECK(printf, 3, 4); +/* For internal Wireshark use only. Not to be called from dissectors. */ +void col_custom_set_fstr(const gchar *field_name, const gchar *format, ...) + GNUC_FORMAT_CHECK(printf, 2, 3); + +/* For internal Wireshark use only. Not to be called from dissectors. */ +void col_custom_prime_edt(epan_dissect_t *edt, column_info *cinfo); + +/* For internal Wireshark use only. Not to be called from dissectors. */ +gboolean have_custom_cols(column_info *cinfo); + /** Append the given text to a column element, the text will be copied. * * @param cinfo the current packet row |