static void ancp_stats_tree_init(stats_tree *st) { st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE); st_node_packet_types = stats_tree_create_pivot(st, st_str_packet_types, st_node_packets); st_node_adj_pack_types = stats_tree_create_node(st, st_str_adj_pack_types, st_node_packets, TRUE); }
static void collectd_stats_tree_init (stats_tree *st) { st_collectd_packets = stats_tree_create_node (st, "Packets", 0, FALSE); st_collectd_values = stats_tree_create_node (st, "Values", 0, TRUE); st_collectd_values_hosts = stats_tree_create_pivot (st, "By host", st_collectd_values); st_collectd_values_plugins = stats_tree_create_pivot (st, "By plugin", st_collectd_values); st_collectd_values_types = stats_tree_create_pivot (st, "By type", st_collectd_values); } /* void collectd_stats_tree_init */
static void hpfeeds_stats_tree_init(stats_tree* st) { st_node_channels_payload = stats_tree_create_node(st, st_str_channels_payload, 0, TRUE); st_node_opcodes = stats_tree_create_pivot(st, st_str_opcodes, 0); channels_list = wmem_list_new(wmem_epan_scope()); }
static void rtsp_stats_tree_init(stats_tree* st) { st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE); st_node_requests = stats_tree_create_pivot(st, st_str_requests, st_node_packets); st_node_responses = stats_tree_create_node(st, st_str_responses, st_node_packets, TRUE); st_node_resp_broken = stats_tree_create_node(st, st_str_resp_broken, st_node_responses, TRUE); st_node_resp_100 = stats_tree_create_node(st, st_str_resp_100, st_node_responses, TRUE); st_node_resp_200 = stats_tree_create_node(st, st_str_resp_200, st_node_responses, TRUE); st_node_resp_300 = stats_tree_create_node(st, st_str_resp_300, st_node_responses, TRUE); st_node_resp_400 = stats_tree_create_node(st, st_str_resp_400, st_node_responses, TRUE); st_node_resp_500 = stats_tree_create_node(st, st_str_resp_500, st_node_responses, TRUE); st_node_other = stats_tree_create_node(st, st_str_other, st_node_packets,ENC_BIG_ENDIAN); }
static void ipv6_hosts_stats_tree_init(stats_tree *st) { st_node_ipv6 = stats_tree_create_node(st, st_str_ipv6, 0, TRUE); }
/* XXX: should this be a macro? */ extern int stats_tree_create_node_by_pname(stats_tree *st, const gchar *name, const gchar *parent_name, gboolean with_children) { return stats_tree_create_node(st,name,stats_tree_parent_id_by_name(st,parent_name),with_children); }