Wireshark  4.3.0
The Wireshark network protocol analyzer
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
21 extern "C" {
22 #endif /* __cplusplus */
23 
24 typedef struct _fmt_data {
25  gchar *title; /* title of the column */
26  int fmt; /* format of column */
27  gchar *custom_fields; /* fields names for COL_CUSTOM */
28  gint custom_occurrence; /* optional ordinal of occurrence of that field */
29  bool visible; /* if FALSE, hide this column */
30  bool resolved; /* if TRUE, show a more human-readable name */
31 } fmt_data;
32 
33 WS_DLL_PUBLIC
34 const gchar *col_format_to_string(const gint);
35 WS_DLL_PUBLIC
36 const gchar *col_format_desc(const gint);
37 WS_DLL_PUBLIC
38 const gchar *col_format_abbrev(const gint);
39 WS_DLL_PUBLIC
40 gint get_column_format(const gint);
41 WS_DLL_PUBLIC
42 void set_column_format(const gint, const gint);
43 WS_DLL_PUBLIC
44 void get_column_format_matches(bool *, const gint);
45 WS_DLL_PUBLIC
46 gint get_column_format_from_str(const gchar *);
47 WS_DLL_PUBLIC
48 gchar *get_column_title(const gint);
49 WS_DLL_PUBLIC
50 void set_column_title(const gint, const gchar *);
51 WS_DLL_PUBLIC
52 gboolean get_column_visible(const gint);
53 WS_DLL_PUBLIC
54 void set_column_visible(const gint, gboolean);
55 WS_DLL_PUBLIC
56 gboolean get_column_resolved(const gint);
57 WS_DLL_PUBLIC
58 void set_column_resolved(const gint, gboolean);
59 WS_DLL_PUBLIC
60 const gchar *get_column_custom_fields(const gint);
61 WS_DLL_PUBLIC
62 void set_column_custom_fields(const gint, const char *);
63 WS_DLL_PUBLIC
64 gint get_column_custom_occurrence(const gint);
65 WS_DLL_PUBLIC
66 void set_column_custom_occurrence(const gint, const gint);
67 WS_DLL_PUBLIC
68 const gchar *get_column_width_string(const gint, const gint);
69 WS_DLL_PUBLIC
70 gint get_column_char_width(const gint format);
71 WS_DLL_PUBLIC
72 gchar *get_column_tooltip(const gint col);
73 
84 WS_DLL_PUBLIC
85 const gchar *get_column_text(column_info *cinfo, const gint col);
86 
87 WS_DLL_PUBLIC
88 void
89 col_finalize(column_info *cinfo);
90 
91 WS_DLL_PUBLIC
92 void
93 build_column_format_array(column_info *cinfo, const gint num_cols, const gboolean reset_fences);
94 
95 WS_DLL_PUBLIC
96 void column_dump_column_formats(void);
97 
110 WS_DLL_PUBLIC
111 gboolean parse_column_format(fmt_data *cfmt, const char *fmt);
112 
120 WS_DLL_PUBLIC
121 void try_convert_to_custom_column(char **fmt);
122 
130 WS_DLL_PUBLIC
131 const char* try_convert_to_column_field(const char *field);
132 
133 WS_DLL_PUBLIC
134 void column_register_fields(void);
135 #ifdef __cplusplus
136 }
137 #endif /* __cplusplus */
138 
139 #endif /* column.h */
WS_DLL_PUBLIC const char * try_convert_to_column_field(const char *field)
Definition: column.c:255
WS_DLL_PUBLIC const gchar * get_column_text(column_info *cinfo, const gint col)
Definition: column.c:1019
WS_DLL_PUBLIC void try_convert_to_custom_column(char **fmt)
Definition: column.c:350
WS_DLL_PUBLIC gboolean parse_column_format(fmt_data *cfmt, const char *fmt)
Definition: column.c:283
Definition: column.h:24
Definition: column-info.h:63