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/stat_tap_ui.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/stat_tap_ui.h')
-rw-r--r-- | epan/stat_tap_ui.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/epan/stat_tap_ui.h b/epan/stat_tap_ui.h index fc00d7de..9fe8aca6 100644 --- a/epan/stat_tap_ui.h +++ b/epan/stat_tap_ui.h @@ -40,7 +40,7 @@ typedef struct _tap_param { const char *name; /* name to use in error messages */ const char *title; /* title to use in GUI widgets */ const enum_val_t *enum_vals; /* values for PARAM_ENUM */ - gboolean optional; /* TRUE if the parameter is optional */ + bool optional; /* true if the parameter is optional */ } tap_param; /* @@ -70,21 +70,21 @@ typedef struct _stat_tap_table_item_type stat_tap_table_item_enum type; union { - guint uint_value; - gint int_value; + unsigned uint_value; + int int_value; const char* string_value; double float_value; - gint enum_value; + int enum_value; } value; /* Scratch space for the dissector. Alternatively we could also add support * for hidden columns. */ union { - guint uint_value; - gint int_value; + unsigned uint_value; + int int_value; const char* string_value; double float_value; - gint enum_value; + int enum_value; void* ptr_value; } user_data; } stat_tap_table_item_type; @@ -110,8 +110,8 @@ typedef struct _stat_tap_table { const char* title; const char *filter_string; /**< append procedure number (%d) to this string to create a display filter */ - guint num_fields; - guint num_elements; + unsigned num_fields; + unsigned num_elements; stat_tap_table_item_type **elements; } stat_tap_table; @@ -127,14 +127,14 @@ typedef struct _stat_tap_table_ui { void (* stat_tap_init_cb)(struct _stat_tap_table_ui* new_stat); tap_packet_cb packet_func; void (* stat_tap_reset_table_cb)(stat_tap_table* table); - void (* stat_tap_free_table_item_cb)(stat_tap_table* table, guint row, guint column, stat_tap_table_item_type* field_data); + void (* stat_tap_free_table_item_cb)(stat_tap_table* table, unsigned row, unsigned column, stat_tap_table_item_type* field_data); void (* stat_filter_check_cb)(const char *opt_arg, const char **filter, char** err); /* Dissector chance to reject filter */ size_t nfields; /* number of fields */ stat_tap_table_item* fields; size_t nparams; /* number of parameters */ tap_param *params; /* pointer to table of parameter info */ GArray *tables; /* An array of stat_tap_table* */ - guint refcount; /* a reference count for deallocation */ + unsigned refcount; /* a reference count for deallocation */ } stat_tap_table_ui; @@ -154,15 +154,15 @@ typedef struct _stat_data_t { WS_DLL_PUBLIC void register_stat_tap_ui(stat_tap_ui *ui, void *userdata); WS_DLL_PUBLIC void register_stat_tap_table_ui(stat_tap_table_ui *ui); -WS_DLL_PUBLIC void stat_tap_iterate_tables(wmem_foreach_func func, gpointer user_data); +WS_DLL_PUBLIC void stat_tap_iterate_tables(wmem_foreach_func func, void *user_data); WS_DLL_PUBLIC void stat_tap_get_filter(stat_tap_table_ui* new_stat, const char *opt_arg, const char **filter, char** err); WS_DLL_PUBLIC stat_tap_table* stat_tap_init_table(const char *name, int num_fields, int num_elements, const char *filter_string); WS_DLL_PUBLIC void stat_tap_add_table(stat_tap_table_ui* new_stat, stat_tap_table* table); WS_DLL_PUBLIC stat_tap_table *stat_tap_find_table(stat_tap_table_ui *ui, const char *name); -WS_DLL_PUBLIC void stat_tap_init_table_row(stat_tap_table *stat_table, guint table_index, guint num_fields, const stat_tap_table_item_type* fields); -WS_DLL_PUBLIC stat_tap_table_item_type* stat_tap_get_field_data(const stat_tap_table *stat_table, guint table_index, guint field_index); -WS_DLL_PUBLIC void stat_tap_set_field_data(stat_tap_table *stat_table, guint table_index, guint field_index, stat_tap_table_item_type* field_data); +WS_DLL_PUBLIC void stat_tap_init_table_row(stat_tap_table *stat_table, unsigned table_index, unsigned num_fields, const stat_tap_table_item_type* fields); +WS_DLL_PUBLIC stat_tap_table_item_type* stat_tap_get_field_data(const stat_tap_table *stat_table, unsigned table_index, unsigned field_index); +WS_DLL_PUBLIC void stat_tap_set_field_data(stat_tap_table *stat_table, unsigned table_index, unsigned field_index, stat_tap_table_item_type* field_data); WS_DLL_PUBLIC void reset_stat_table(stat_tap_table_ui* new_stat); WS_DLL_PUBLIC stat_tap_table_ui *stat_tap_by_name(const char *name); @@ -178,7 +178,7 @@ WS_DLL_PUBLIC stat_tap_table_ui *stat_tap_by_name(const char *name); WS_DLL_PUBLIC void free_stat_tables(stat_tap_table_ui* new_stat); -WS_DLL_PUBLIC gboolean process_stat_cmd_arg(const char *optstr); +WS_DLL_PUBLIC bool process_stat_cmd_arg(const char *optstr); WS_DLL_PUBLIC void list_stat_cmd_args(void); |