aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2008-02-12 03:16:09 +0000
committerStephen Fisher <steve@stephen-fisher.com>2008-02-12 03:16:09 +0000
commit0a85a9e4c6016b0cd68b590990a927f4bb4d4fce (patch)
treeaf744fcb03e5f1df24631059a5792b6679c28b54 /epan/column.c
parente3c70390151a5a9e98e70b400c3d7493ea4b807b (diff)
Introduce a new column type called custom, which lets you put any display
filter name in the description field and it will display that field in the packet list if it occurs in that packet. Note that the more common fields are implemented, but a number of them remain to be implemented in epan/proto.c. I will work on these other fields as I have time. svn path=/trunk/; revision=24308
Diffstat (limited to 'epan/column.c')
-rw-r--r--epan/column.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/column.c b/epan/column.c
index 7afaded3e3..45cf19e78f 100644
--- a/epan/column.c
+++ b/epan/column.c
@@ -105,7 +105,8 @@ col_format_to_string(gint fmt) {
"%C",
"%l",
"%a",
- "%F"
+ "%F",
+ "%Cus"
};
if (fmt < 0 || fmt >= NUM_COL_FMTS)
@@ -174,7 +175,8 @@ static const gchar *dlist[NUM_COL_FMTS] = {
"Frame Relay DLCI", /* COL_FR_DLCI */
"GPRS BSSGP TLLI", /* COL_BSSGP_TLLI */
"Expert Info Severity", /* COL_EXPERT */
- "Frequency/Channel" /* COL_FREQ_CHAN */
+ "Frequency/Channel", /* COL_FREQ_CHAN */
+ "Custom" /* COL_CUSTOM */
};
const gchar *
@@ -299,6 +301,9 @@ get_column_format_matches(gboolean *fmt_list, gint format) {
case COL_FREQ_CHAN:
fmt_list[COL_FREQ_CHAN] = TRUE;
break;
+ case COL_CUSTOM:
+ fmt_list[COL_CUSTOM] = TRUE;
+ break;
default:
break;
}