Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
column.h
Go to the documentation of this file.
1
14#ifndef __COLUMN_H__
15#define __COLUMN_H__
16
17#include "ws_symbol_export.h"
18#include <epan/column-utils.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
27#define COLUMN_DISPLAY_VALUES 'U'
28#define COLUMN_DISPLAY_STRINGS 'R'
29#define COLUMN_DISPLAY_DETAILS 'D'
30
31typedef struct _fmt_data {
32 char *title; /* title of the column */
33 int fmt; /* format of column */
34 char *custom_fields; /* fields names for COL_CUSTOM */
35 int custom_occurrence; /* optional ordinal of occurrence of that field */
36 bool visible; /* if false, hide this column */
37 char display; /* how to display a custom field value */
38} fmt_data;
39
40WS_DLL_PUBLIC
41const char *col_format_to_string(const int);
42WS_DLL_PUBLIC
43const char *col_format_desc(const int);
44WS_DLL_PUBLIC
45const char *col_format_abbrev(const int);
46WS_DLL_PUBLIC
47int get_column_format(const int);
48WS_DLL_PUBLIC
49void set_column_format(const int, const int);
50WS_DLL_PUBLIC
51void get_column_format_matches(bool *, const int);
52WS_DLL_PUBLIC
53int get_column_format_from_str(const char *);
54WS_DLL_PUBLIC
55char *get_column_title(const int);
56WS_DLL_PUBLIC
57void set_column_title(const int, const char *);
58WS_DLL_PUBLIC
59bool get_column_visible(const int);
60WS_DLL_PUBLIC
61void set_column_visible(const int, bool);
62WS_DLL_PUBLIC
63char get_column_display_format(const int);
64WS_DLL_PUBLIC
65void set_column_display_format(const int, char);
66WS_DLL_PUBLIC
67const char *get_column_custom_fields(const int);
68WS_DLL_PUBLIC
69void set_column_custom_fields(const int, const char *);
70WS_DLL_PUBLIC
71int get_column_custom_occurrence(const int);
72WS_DLL_PUBLIC
73void set_column_custom_occurrence(const int, const int);
74WS_DLL_PUBLIC
75const char *get_column_longest_string(const int);
76WS_DLL_PUBLIC
77const char *get_column_width_string(const int, const int);
78WS_DLL_PUBLIC
79int get_column_char_width(const int format);
80WS_DLL_PUBLIC
81char *get_column_tooltip(const int col);
82
93WS_DLL_PUBLIC
94const char *get_column_text(column_info *cinfo, const int col);
95
96WS_DLL_PUBLIC
97void
98col_finalize(column_info *cinfo);
99
100WS_DLL_PUBLIC
101void
102build_column_format_array(column_info *cinfo, const int num_cols, const bool reset_fences);
103
104WS_DLL_PUBLIC
105void column_dump_column_formats(void);
106
119WS_DLL_PUBLIC
120bool parse_column_format(fmt_data *cfmt, const char *fmt);
121
132extern
133char * column_fmt_data_to_str(const fmt_data *cfmt);
134
142WS_DLL_PUBLIC
143void try_convert_to_custom_column(char **fmt);
144
152WS_DLL_PUBLIC
153const char* try_convert_to_column_field(const char *field);
154
155WS_DLL_PUBLIC
156void column_register_fields(void);
157#ifdef __cplusplus
158}
159#endif /* __cplusplus */
160
161#endif /* column.h */
WS_DLL_PUBLIC const char * try_convert_to_column_field(const char *field)
Definition column.c:267
char * column_fmt_data_to_str(const fmt_data *cfmt)
Definition column.c:362
WS_DLL_PUBLIC void try_convert_to_custom_column(char **fmt)
Definition column.c:380
WS_DLL_PUBLIC const char * get_column_text(column_info *cinfo, const int col)
Definition column.c:1061
WS_DLL_PUBLIC bool parse_column_format(fmt_data *cfmt, const char *fmt)
Definition column.c:295
Definition column.h:31
Definition column-info.h:62