2 * Definitions for column handling routines
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #include "ws_symbol_export.h"
29 #include <epan/column-info.h>
33 #endif /* __cplusplus */
35 typedef struct _fmt_data {
36 gchar *title; /* title of the column */
37 int fmt; /* format of column */
38 gchar *custom_field; /* field name for COL_CUSTOM */
39 gint custom_occurrence; /* optional ordinal of occurrence of that field */
40 gboolean visible; /* if FALSE, hide this column */
41 gboolean resolved; /* if TRUE, show a more human-readable name */
45 const gchar *col_format_to_string(const gint);
47 const gchar *col_format_desc(const gint);
49 gint get_column_format(const gint);
51 void set_column_format(const gint, const gint);
53 void get_column_format_matches(gboolean *, const gint);
55 gint get_column_format_from_str(const gchar *);
57 gchar *get_column_title(const gint);
59 void set_column_title(const gint, const gchar *);
61 gboolean get_column_visible(const gint);
63 void set_column_visible(const gint, gboolean);
65 gboolean get_column_resolved(const gint);
67 void set_column_resolved(const gint, gboolean);
69 const gchar *get_column_custom_field(const gint);
71 void set_column_custom_field(const gint, const char *);
73 gint get_column_custom_occurrence(const gint);
75 void set_column_custom_occurrence(const gint, const gint);
77 const gchar *get_column_width_string(const gint, const gint);
79 const char *get_column_longest_string(const gint);
81 gint get_column_char_width(const gint format);
85 build_column_format_array(column_info *cinfo, const gint num_cols, const gboolean reset_fences);
88 void column_dump_column_formats(void);
92 #endif /* __cplusplus */