diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
commit | a86c5f7cae7ec9a3398300555a0b644689d946a1 (patch) | |
tree | 39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /epan/column.h | |
parent | Releasing progress-linux version 4.2.6-1~progress7.99u1. (diff) | |
download | wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/column.h')
-rw-r--r-- | epan/column.h | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/epan/column.h b/epan/column.h index dd8d546c..f7739b88 100644 --- a/epan/column.h +++ b/epan/column.h @@ -22,54 +22,56 @@ extern "C" { #endif /* __cplusplus */ typedef struct _fmt_data { - gchar *title; /* title of the column */ + char *title; /* title of the column */ int fmt; /* format of column */ - gchar *custom_fields; /* fields names for COL_CUSTOM */ - gint custom_occurrence; /* optional ordinal of occurrence of that field */ - bool visible; /* if FALSE, hide this column */ - bool resolved; /* if TRUE, show a more human-readable name */ + char *custom_fields; /* fields names for COL_CUSTOM */ + int custom_occurrence; /* optional ordinal of occurrence of that field */ + bool visible; /* if false, hide this column */ + bool resolved; /* if true, show a more human-readable name */ } fmt_data; WS_DLL_PUBLIC -const gchar *col_format_to_string(const gint); +const char *col_format_to_string(const int); WS_DLL_PUBLIC -const gchar *col_format_desc(const gint); +const char *col_format_desc(const int); WS_DLL_PUBLIC -const gchar *col_format_abbrev(const gint); +const char *col_format_abbrev(const int); WS_DLL_PUBLIC -gint get_column_format(const gint); +int get_column_format(const int); WS_DLL_PUBLIC -void set_column_format(const gint, const gint); +void set_column_format(const int, const int); WS_DLL_PUBLIC -void get_column_format_matches(gboolean *, const gint); +void get_column_format_matches(bool *, const int); WS_DLL_PUBLIC -gint get_column_format_from_str(const gchar *); +int get_column_format_from_str(const char *); WS_DLL_PUBLIC -gchar *get_column_title(const gint); +char *get_column_title(const int); WS_DLL_PUBLIC -void set_column_title(const gint, const gchar *); +void set_column_title(const int, const char *); WS_DLL_PUBLIC -gboolean get_column_visible(const gint); +bool get_column_visible(const int); WS_DLL_PUBLIC -void set_column_visible(const gint, gboolean); +void set_column_visible(const int, bool); WS_DLL_PUBLIC -gboolean get_column_resolved(const gint); +bool get_column_resolved(const int); WS_DLL_PUBLIC -void set_column_resolved(const gint, gboolean); +void set_column_resolved(const int, bool); WS_DLL_PUBLIC -const gchar *get_column_custom_fields(const gint); +const char *get_column_custom_fields(const int); WS_DLL_PUBLIC -void set_column_custom_fields(const gint, const char *); +void set_column_custom_fields(const int, const char *); WS_DLL_PUBLIC -gint get_column_custom_occurrence(const gint); +int get_column_custom_occurrence(const int); WS_DLL_PUBLIC -void set_column_custom_occurrence(const gint, const gint); +void set_column_custom_occurrence(const int, const int); WS_DLL_PUBLIC -const gchar *get_column_width_string(const gint, const gint); +const char *get_column_longest_string(const int); WS_DLL_PUBLIC -gint get_column_char_width(const gint format); +const char *get_column_width_string(const int, const int); WS_DLL_PUBLIC -gchar *get_column_tooltip(const gint col); +int get_column_char_width(const int format); +WS_DLL_PUBLIC +char *get_column_tooltip(const int col); /** Get the text of a column element. The string returned may * depend on whether the resolved member variable is set. @@ -82,7 +84,7 @@ gchar *get_column_tooltip(const gint col); * @return the text string */ WS_DLL_PUBLIC -const gchar *get_column_text(column_info *cinfo, const gint col); +const char *get_column_text(column_info *cinfo, const int col); WS_DLL_PUBLIC void @@ -90,7 +92,7 @@ col_finalize(column_info *cinfo); WS_DLL_PUBLIC void -build_column_format_array(column_info *cinfo, const gint num_cols, const gboolean reset_fences); +build_column_format_array(column_info *cinfo, const int num_cols, const bool reset_fences); WS_DLL_PUBLIC void column_dump_column_formats(void); @@ -105,10 +107,10 @@ void column_dump_column_formats(void); * the custom_fields member as well. * @param[in] fmt The column format to parse. * - * @return TRUE if conversion was successful, FALSE if unsuccessful + * @return true if conversion was successful, false if unsuccessful */ WS_DLL_PUBLIC -gboolean parse_column_format(fmt_data *cfmt, const char *fmt); +bool parse_column_format(fmt_data *cfmt, const char *fmt); /** Checks a column format string to see if it is a deprecated column * that has been migrated to a custom column, and converts the format |