14#include "ws_symbol_export.h"
24#define COLUMN_DISPLAY_VALUES 'U'
25#define COLUMN_DISPLAY_STRINGS 'R'
26#define COLUMN_DISPLAY_DETAILS 'D'
32 int custom_occurrence;
47const char *col_format_desc(
const int fmt_num);
50const char *col_format_abbrev(
const int fmt_num);
53int get_column_format(
const int col);
WS_DLL_PUBLIC int get_column_format_from_str(const char *str)
Get the column format number from a string representation.
Definition column.c:918
WS_DLL_PUBLIC void set_column_title(const int col, const char *title)
Set the title of a column.
Definition column.c:944
WS_DLL_PUBLIC const char * get_column_custom_fields(const int col)
Get custom fields for a specific column.
Definition column.c:1015
WS_DLL_PUBLIC void build_column_format_array(column_info *cinfo, const int num_cols, const bool reset_fences)
Build an array of column formats based on the provided parameters.
Definition column.c:1234
WS_DLL_PUBLIC void column_register_fields(void)
Registers all fields for Wireshark columns.
Definition column.c:1274
WS_DLL_PUBLIC void column_dump_column_formats(void)
Dump the available column formats and their descriptions to the console.
Definition column.c:403
WS_DLL_PUBLIC const char * try_convert_to_column_field(const char *field)
Checks a column field string to see if it is a name of a filter field created using a default column ...
Definition column.c:271
WS_DLL_PUBLIC bool get_column_visible(const int col)
Get the visibility status of a column.
Definition column.c:959
WS_DLL_PUBLIC char * get_column_tooltip(const int col)
Get the tooltip text of a column element.
Definition column.c:1100
WS_DLL_PUBLIC void get_column_format_matches(bool *fmt_list, const int format)
Get column format matches based on a boolean array and an integer value.
Definition column.c:472
WS_DLL_PUBLIC void set_column_display_format(const int col, char display)
Set the display format for a specific column.
Definition column.c:1001
WS_DLL_PUBLIC void set_column_custom_occurrence(const int col, const int custom_occurrence)
Set a custom occurrence for a specific column.
Definition column.c:1058
char * column_fmt_data_to_str(const fmt_data *cfmt)
Given a fmt_data struct, returns the column format string that should be written to the preferences t...
Definition column.c:366
WS_DLL_PUBLIC void try_convert_to_custom_column(char **fmt)
Checks a column format string to see if it is a deprecated column that has been migrated to a custom ...
Definition column.c:384
WS_DLL_PUBLIC const char * get_column_longest_string(const int format)
Get the text of a column element.
Definition column.c:788
WS_DLL_PUBLIC const char * col_format_to_string(const int fmt)
Convert a column format number to its corresponding string representation.
Definition column.c:36
WS_DLL_PUBLIC char * get_column_title(const int col)
Get the title of a column.
Definition column.c:930
WS_DLL_PUBLIC const char * get_column_text(column_info *cinfo, const int col)
Get the text of a column element.
Definition column.c:1142
WS_DLL_PUBLIC const char * get_column_width_string(const int format, const int col)
Get a string representing the width of a column.
Definition column.c:872
WS_DLL_PUBLIC void set_column_format(const int col, const int fmt)
Set the format for a column.
Definition column.c:904
WS_DLL_PUBLIC int get_column_custom_occurrence(const int col)
Get the custom occurrence of a column.
Definition column.c:1044
WS_DLL_PUBLIC void col_finalize(column_info *cinfo)
Finalizes a column by compiling custom filters and splitting fields.
Definition column.c:1156
WS_DLL_PUBLIC void set_column_visible(const int col, bool visible)
Set the visibility of a column.
Definition column.c:973
WS_DLL_PUBLIC void set_column_custom_fields(const int col, const char *custom_fields)
Set custom fields for a specific column.
Definition column.c:1029
WS_DLL_PUBLIC int get_column_char_width(const int format)
Get the character width of a column format.
Definition column.c:884
WS_DLL_PUBLIC char get_column_display_format(const int col)
Get the current display format for a column.
Definition column.c:987
WS_DLL_PUBLIC bool parse_column_format(fmt_data *cfmt, const char *fmt)
Parse a column format string into a fmt_data struct.
Definition column.c:299
Definition column-info.h:59