aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-08-25 21:10:35 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-08-25 21:10:35 +0000
commit32e7cddf70a0a3f30402013e5370d5036e83b7de (patch)
tree55006bf7e88e207a2ac93cb0167ee748b5894af5 /epan/epan.c
parent4968b876cd00feb8828bd597ea4fc5c3185e9d27 (diff)
From Didier Gautheron:
move custom col set from proto_tree_set_xxx() to epan_dissect_fill_in_columns(). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3930 I'v added the new functions to the .h files. svn path=/trunk/; revision=29551
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 623865e561..e7df854334 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -215,11 +215,22 @@ epan_dissect_free(epan_dissect_t* edt)
void
epan_dissect_prime_dfilter(epan_dissect_t *edt, const dfilter_t* dfcode)
{
- dfilter_prime_proto_tree(dfcode, edt->tree);
+ dfilter_prime_proto_tree(dfcode, edt->tree);
+}
+
+/* ----------------------- */
+const gchar *
+epan_custom_set(epan_dissect_t *edt, const gchar *field,
+ gchar *result,
+ gchar *expr, int size )
+{
+ return proto_custom_set(edt->tree, field, result, expr, size);
}
void
epan_dissect_fill_in_columns(epan_dissect_t *edt, gboolean fill_fd_colums)
{
+ col_custom_set_edt(edt, edt->pi.cinfo);
col_fill_in(&edt->pi, fill_fd_colums);
}
+