2 * Definitions for column handling routines
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
14 #include "ws_symbol_export.h"
15 #include <epan/column-info.h>
19 #endif /* __cplusplus */
21 typedef struct _fmt_data
{
22 gchar
*title
; /* title of the column */
23 int fmt
; /* format of column */
24 gchar
*custom_fields
; /* fields names for COL_CUSTOM */
25 gint custom_occurrence
; /* optional ordinal of occurrence of that field */
26 gboolean visible
; /* if FALSE, hide this column */
27 gboolean resolved
; /* if TRUE, show a more human-readable name */
31 const gchar
*col_format_to_string(const gint
);
33 const gchar
*col_format_desc(const gint
);
35 gint
get_column_format(const gint
);
37 void set_column_format(const gint
, const gint
);
39 void get_column_format_matches(gboolean
*, const gint
);
41 gint
get_column_format_from_str(const gchar
*);
43 gchar
*get_column_title(const gint
);
45 void set_column_title(const gint
, const gchar
*);
47 gboolean
get_column_visible(const gint
);
49 void set_column_visible(const gint
, gboolean
);
51 gboolean
get_column_resolved(const gint
);
53 void set_column_resolved(const gint
, gboolean
);
55 const gchar
*get_column_custom_fields(const gint
);
57 void set_column_custom_fields(const gint
, const char *);
59 gint
get_column_custom_occurrence(const gint
);
61 void set_column_custom_occurrence(const gint
, const gint
);
63 const gchar
*get_column_width_string(const gint
, const gint
);
65 gint
get_column_char_width(const gint format
);
67 gchar
*get_column_tooltip(const gint col
);
71 col_finalize(column_info
*cinfo
);
75 build_column_format_array(column_info
*cinfo
, const gint num_cols
, const gboolean reset_fences
);
78 void column_dump_column_formats(void);
82 #endif /* __cplusplus */