diff options
author | Michael Mann <mmann78@netscape.net> | 2013-12-01 15:44:22 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-12-01 15:44:22 +0000 |
commit | 0c9aa51ec532fec52a91c3b8d871e02087ee772f (patch) | |
tree | 7020bc97fff5778aaf1ed692c60f78e55f29c270 /epan/stats_tree_priv.h | |
parent | 98c8454dd635fb96a638839c9956a96bdfe76152 (diff) |
Patch to include YAML export. Bug 9452 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9452)
From Deon van der Westhuysen
From me: use switch statements instead of if-else
svn path=/trunk/; revision=53698
Diffstat (limited to 'epan/stats_tree_priv.h')
-rw-r--r-- | epan/stats_tree_priv.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/stats_tree_priv.h b/epan/stats_tree_priv.h index 3dbba7bb6f..489beb1c5e 100644 --- a/epan/stats_tree_priv.h +++ b/epan/stats_tree_priv.h @@ -243,10 +243,6 @@ WS_DLL_PUBLIC guint stats_tree_branch_max_namelen(const stat_node *node, guint i WS_DLL_PUBLIC gchar *stats_tree_node_to_str(const stat_node *node, gchar *buffer, guint len); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - /** 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 */ @@ -283,7 +279,7 @@ WS_DLL_PUBLIC gint stat_node_array_sortcmp (gconstpointer a, gpointer user_data); /** function to copy stats_tree into GString. format deternmines output format */ -typedef enum { ST_FORMAT_PLAIN, ST_FORMAT_CSV, ST_FORMAT_XML} st_format_type; +typedef enum { ST_FORMAT_PLAIN, ST_FORMAT_CSV, ST_FORMAT_XML, ST_FORMAT_YAML} st_format_type; WS_DLL_PUBLIC GString* stats_tree_format_as_str(const stats_tree* st, guint format, gint sort_column, @@ -299,4 +295,8 @@ WS_DLL_PUBLIC void stats_tree_format_node_as_str(const stat_node *node, gint sort_column, gboolean sort_descending); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* __STATS_TREE_PRIV_H */ |