summaryrefslogtreecommitdiff
path: root/epan/column-utils.h
diff options
context:
space:
mode:
authorSake Blok <sake@euronet.nl>2007-10-03 14:02:08 +0000
committerSake Blok <sake@euronet.nl>2007-10-03 14:02:08 +0000
commita592e6412ca6ecf71129fbf12a3de46a327239e6 (patch)
tree1c21dab32b2f4b96276394ee9f42edd7d72a0794 /epan/column-utils.h
parent022aaeb39df43f0a478027101775f6b259525b50 (diff)
downloadwireshark-a592e6412ca6ecf71129fbf12a3de46a327239e6.tar.gz
This patch adds two new column types:
- COL_REL_CONV_TIME which is used to display the time relative to the first frame that was seen in the conversation - COL_DELTA_CONV_TIME which is used to display the delta time from the previous frame of the conversation It also adds the function "col_set_time()" to "epan/column-utils.[ch]" which can be called from within a dissector to set either of these two columns to the appropiate time. Last but not least, it lets the tcp-dissector make use of these two columns. svn path=/trunk/; revision=23058
Diffstat (limited to 'epan/column-utils.h')
-rw-r--r--epan/column-utils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/column-utils.h b/epan/column-utils.h
index 141e9ce25d..946df43680 100644
--- a/epan/column-utils.h
+++ b/epan/column-utils.h
@@ -209,6 +209,20 @@ extern void col_append_sep_fstr(column_info *cinfo, gint col, const gchar *sep,
const gchar *format, ...)
GNUC_FORMAT_CHECK(printf, 4, 5);
+/** Set the given (relative) time to a column element.
+ *
+ * Used by multiple dissectors to set the time in the columns
+ * COL_REL_CONV_TIME and COL_DELTA_CONV_TIME
+ *
+ * @param cinfo the current packet row
+ * @param col the column to use, e.g. COL_INFO
+ * @param ts the time to set in the column
+ * @param fieldname the fieldname to use for creating a filter (when
+ * applying/preparing/copying as filter)
+ */
+extern void col_set_time(column_info *cinfo, int col,
+ nstime_t *ts, char *fieldname);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */