diff options
author | Michael Mann <mmann78@netscape.net> | 2013-02-25 20:43:06 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-02-25 20:43:06 +0000 |
commit | 41bd69d601bf8f43f8900896e9c5fe5bb5c3e509 (patch) | |
tree | 93e06ab4773e9b60da489805344d9e72bd419e3f /epan/column-utils.h | |
parent | 8692843ee300ac5ebebbf92e73ac0532b3256d4c (diff) |
LUA API improvements
1. Add col_set_fence() equivalent
2. Update __tostring function to actually return column text
From Hadriel Kaplan, bug 8295 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8295)
svn path=/trunk/; revision=47882
Diffstat (limited to 'epan/column-utils.h')
-rw-r--r-- | epan/column-utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/column-utils.h b/epan/column-utils.h index daa7353e36..073cbc12ff 100644 --- a/epan/column-utils.h +++ b/epan/column-utils.h @@ -117,6 +117,15 @@ extern gint check_col(column_info *cinfo, const gint col); */ extern void col_set_fence(column_info *cinfo, const gint col); +/** Gets the text of a column element. + * + * @param cinfo the current packet row + * @param col the column to use, e.g. COL_INFO + * + * @return the text string + */ +extern const gchar *col_get_text(column_info *cinfo, const gint col); + /** Clears the text of a column element. * * @param cinfo the current packet row |