diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-06-25 06:42:34 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-06-25 06:42:34 +0000 |
commit | beb43142767c06aa3afe72c75716369c2b72912d (patch) | |
tree | cb78636348f64c2d3ff5796a37b925e1af0bdf5d /epan/column.c | |
parent | 64ebe8caae621b2ea1cb0590d5d33b6a273e4a0f (diff) | |
download | wireshark-beb43142767c06aa3afe72c75716369c2b72912d.tar.gz |
Introduce "Show Resolved" as an option in custom columns. This will determine
if we show the value or the string representing the value.
This setting is not stored in the preferences file yet, and the option is
not available in the columns preferences window.
svn path=/trunk/; revision=33317
Diffstat (limited to 'epan/column.c')
-rw-r--r-- | epan/column.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/epan/column.c b/epan/column.c index e3ffceade2..b1b0504500 100644 --- a/epan/column.c +++ b/epan/column.c @@ -683,6 +683,34 @@ set_column_visible(const gint col, gboolean visible) cfmt->visible = visible; } +gboolean +get_column_resolved(const gint col) +{ + GList *clp = g_list_nth(prefs.col_list, col); + fmt_data *cfmt; + + if (!clp) /* Invalid column requested */ + return TRUE; + + cfmt = (fmt_data *) clp->data; + + return(cfmt->resolved); +} + +void +set_column_resolved(const gint col, gboolean resolved) +{ + GList *clp = g_list_nth(prefs.col_list, col); + fmt_data *cfmt; + + if (!clp) /* Invalid column requested */ + return; + + cfmt = (fmt_data *) clp->data; + + cfmt->resolved = resolved; +} + const gchar * get_column_custom_field(const gint col) { |