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"
32 #endif /* __cplusplus */
34 typedef struct _fmt_data {
35 gchar *title; /* title of the column */
36 int fmt; /* format of column */
37 gchar *custom_field; /* field name for COL_CUSTOM */
38 gint custom_occurrence; /* optional ordinal of occurrence of that field */
39 gboolean visible; /* if FALSE, hide this column */
40 gboolean resolved; /* if TRUE, show a more human-readable name */
44 const gchar *col_format_to_string(const gint);
46 const gchar *col_format_desc(const gint);
48 gint get_column_format(const gint);
50 void set_column_format(const gint, const gint);
52 void get_column_format_matches(gboolean *, const gint);
54 gint get_column_format_from_str(const gchar *);
56 gchar *get_column_title(const gint);
58 void set_column_title(const gint, const gchar *);
60 gboolean get_column_visible(const gint);
62 void set_column_visible(const gint, gboolean);
64 gboolean get_column_resolved(const gint);
66 void set_column_resolved(const gint, gboolean);
68 const gchar *get_column_custom_field(const gint);
70 void set_column_custom_field(const gint, const char *);
72 gint get_column_custom_occurrence(const gint);
74 void set_column_custom_occurrence(const gint, const gint);
76 const gchar *get_column_width_string(const gint, const gint);
78 const char *get_column_longest_string(const gint);
80 gint get_column_char_width(const gint format);
84 build_column_format_array(column_info *cinfo, const gint num_cols, const gboolean reset_fences);
87 void column_dump_column_formats(void);
91 #endif /* __cplusplus */