![]() |
Wireshark
4.3.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
struct | _range_pair |
struct | _burst_bucket |
struct | _stat_node |
struct | _stats_tree |
struct | _stats_tree_cfg |
Macros | |
#define | INDENT_MAX 32 |
#define | NUM_BUF_SIZE 32 |
Typedefs | |
typedef struct _st_node_pres | st_node_pres |
typedef struct _tree_pres | tree_pres |
typedef struct _tree_cfg_pres | tree_cfg_pres |
typedef struct _stat_node | stat_node |
typedef struct _stats_tree_cfg | stats_tree_cfg |
typedef struct _range_pair | range_pair_t |
typedef struct _burst_bucket | burst_bucket |
Functions | |
WS_DLL_PUBLIC void | stats_tree_presentation (void(*registry_iterator)(gpointer, gpointer, gpointer), void(*setup_node_pr)(stat_node *), void(*free_tree_pr)(stats_tree *), void *data) |
WS_DLL_PUBLIC stats_tree * | stats_tree_new (stats_tree_cfg *cfg, tree_pres *pr, const char *filter) |
WS_DLL_PUBLIC tap_packet_status | stats_tree_packet (void *, packet_info *, epan_dissect_t *, const void *, tap_flags_t flags) |
WS_DLL_PUBLIC void | stats_tree_reset (void *p_st) |
WS_DLL_PUBLIC void | stats_tree_reinit (void *p_st) |
WS_DLL_PUBLIC void | stats_tree_free (stats_tree *st) |
WS_DLL_PUBLIC gchar * | stats_tree_get_abbr (const gchar *ws_optarg) |
WS_DLL_PUBLIC stats_tree_cfg * | stats_tree_get_cfg_by_abbr (const char *abbr) |
WS_DLL_PUBLIC GList * | stats_tree_get_cfg_list (void) |
WS_DLL_PUBLIC guint | stats_tree_branch_max_namelen (const stat_node *node, guint indent) |
WS_DLL_PUBLIC gchar * | stats_tree_node_to_str (const stat_node *node, gchar *buffer, guint len) |
WS_DLL_PUBLIC gchar * | stats_tree_get_displayname (gchar *fullname) |
WS_DLL_PUBLIC gint | stats_tree_get_default_sort_col (stats_tree *st) |
WS_DLL_PUBLIC gboolean | stats_tree_is_default_sort_DESC (stats_tree *st) |
WS_DLL_PUBLIC const gchar * | stats_tree_get_column_name (stats_tree_cfg *st_config, gint col_index) |
WS_DLL_PUBLIC gint | stats_tree_get_column_size (gint col_index) |
WS_DLL_PUBLIC gchar ** | stats_tree_get_values_from_node (const stat_node *node) |
WS_DLL_PUBLIC gint | stats_tree_sort_compare (const stat_node *a, const stat_node *b, gint sort_column, gboolean sort_descending) |
WS_DLL_PUBLIC gint | stat_node_array_sortcmp (gconstpointer a, gconstpointer b, gpointer user_data) |
WS_DLL_PUBLIC GString * | stats_tree_format_as_str (const stats_tree *st, st_format_type format_type, gint sort_column, gboolean sort_descending) |
WS_DLL_PUBLIC void | stats_tree_format_node_as_str (const stat_node *node, GString *s, st_format_type format_type, guint indent, const gchar *path, gint maxnamelen, gint sort_column, gboolean sort_descending) |
implementor's API for stats_tree 2005, Luis E. G. Ontanon
Wireshark - Network traffic analyzer By Gerald Combs geral Copyright 1998 Gerald Combs d@wi resha rk.o rg
SPDX-License-Identifier: GPL-2.0-or-later
typedef struct _st_node_pres st_node_pres |
implementations should define this to contain its own node related data as well as some operations on it
typedef struct _tree_cfg_pres tree_cfg_pres |
implementations should define this to contain its own static tree related data as well as some operations on it
typedef struct _tree_pres tree_pres |
implementations should define this to contain its own dynamic tree related data as well as some operations on it
WS_DLL_PUBLIC gint stat_node_array_sortcmp | ( | gconstpointer | a, |
gconstpointer | b, | ||
gpointer | user_data | ||
) |
wrapper for stats_tree_sort_compare() function that can be called from array sort.
WS_DLL_PUBLIC guint stats_tree_branch_max_namelen | ( | const stat_node * | node, |
guint | indent | ||
) |
used to calculate the size of the indentation and the longest string
WS_DLL_PUBLIC GString* stats_tree_format_as_str | ( | const stats_tree * | st, |
st_format_type | format_type, | ||
gint | sort_column, | ||
gboolean | sort_descending | ||
) |
function to copy stats_tree into GString. format determines output format
WS_DLL_PUBLIC void stats_tree_format_node_as_str | ( | const stat_node * | node, |
GString * | s, | ||
st_format_type | format_type, | ||
guint | indent, | ||
const gchar * | path, | ||
gint | maxnamelen, | ||
gint | sort_column, | ||
gboolean | sort_descending | ||
) |
helper funcation to add note to formatted stats_tree
helper function to add note to formatted stats_tree
WS_DLL_PUBLIC gchar* stats_tree_get_abbr | ( | const gchar * | ws_optarg | ) |
given an ws_optarg splits the abbr part and returns a newly allocated buffer containing it
WS_DLL_PUBLIC stats_tree_cfg* stats_tree_get_cfg_by_abbr | ( | const char * | abbr | ) |
obtains a stats tree from the registry given its abbr
WS_DLL_PUBLIC GList* stats_tree_get_cfg_list | ( | void | ) |
obtains a stats tree list from the registry caller should free returned list with g_list_free()
WS_DLL_PUBLIC const gchar* stats_tree_get_column_name | ( | stats_tree_cfg * | st_config, |
gint | col_index | ||
) |
returns the column name for a given column index
WS_DLL_PUBLIC gint stats_tree_get_column_size | ( | gint | col_index | ) |
returns the maximum number of characters in the value of a column
WS_DLL_PUBLIC gint stats_tree_get_default_sort_col | ( | stats_tree * | st | ) |
returns the column number of the default column to sort on
WS_DLL_PUBLIC gchar* stats_tree_get_displayname | ( | gchar * | fullname | ) |
get the display name for the stats_tree (or node name) based on the st_sort_showfullname preference. If not set remove everything before last unescaped backslash. Caller must free the result
WS_DLL_PUBLIC gchar** stats_tree_get_values_from_node | ( | const stat_node * | node | ) |
returns the formatted column values for the current node as array of gchar*. Caller must free entries and free array
WS_DLL_PUBLIC gboolean stats_tree_is_default_sort_DESC | ( | stats_tree * | st | ) |
returns the default sort order to use
WS_DLL_PUBLIC gchar* stats_tree_node_to_str | ( | const stat_node * | node, |
gchar * | buffer, | ||
guint | len | ||
) |
a text representation of a node, if buffer is NULL returns a newly allocated string
WS_DLL_PUBLIC tap_packet_status stats_tree_packet | ( | void * | p, |
packet_info * | pinfo, | ||
epan_dissect_t * | edt, | ||
const void * | pri, | ||
tap_flags_t | flags | ||
) |
callback for taps
WS_DLL_PUBLIC void stats_tree_reinit | ( | void * | p_st | ) |
callback for clear
WS_DLL_PUBLIC void stats_tree_reset | ( | void * | p_st | ) |
callback for reset