11 #ifndef __SRT_TABLE_H__ 12 #define __SRT_TABLE_H__ 15 #include "timestats.h" 16 #include "wmem/wmem.h" 38 void* table_specific_data;
43 typedef void (*srt_gui_init_cb)(
srt_stat_table* rst,
void* gui_data);
44 typedef void (*srt_gui_reset_cb)(
srt_stat_table* rst,
void* gui_data);
45 typedef void (*srt_gui_free_cb)(
srt_stat_table* rst,
void* gui_data);
47 typedef void (*srt_init_cb)(
struct register_srt* srt, GArray* srt_array, srt_gui_init_cb gui_callback,
void* gui_data);
48 typedef guint (*srt_param_handler_cb)(
struct register_srt* srt,
const char* opt_arg,
char** err);
69 WS_DLL_PUBLIC
void register_srt_table(
const int proto_id,
const char* tap_listener,
int max_tables,
70 tap_packet_cb srt_packet_func, srt_init_cb init_cb, srt_param_handler_cb param_cb);
84 WS_DLL_PUBLIC
const char* get_srt_tap_listener_name(
register_srt_t* srt);
98 WS_DLL_PUBLIC tap_packet_cb get_srt_packet_func(
register_srt_t* srt);
106 WS_DLL_PUBLIC
void set_srt_table_param_data(
register_srt_t* srt,
void* data);
113 WS_DLL_PUBLIC
void* get_srt_table_param_data(
register_srt_t* srt);
120 WS_DLL_PUBLIC
register_srt_t* get_srt_table_by_name(
const char* name);
135 WS_DLL_PUBLIC
void free_srt_table(
register_srt_t *srt, GArray* srt_array, srt_gui_free_cb gui_callback,
void *callback_data);
143 WS_DLL_PUBLIC
void reset_srt_table(GArray* srt_array, srt_gui_reset_cb gui_callback,
void *callback_data);
151 WS_DLL_PUBLIC
void srt_table_iterate_tables(
wmem_foreach_func func, gpointer user_data);
160 WS_DLL_PUBLIC
void srt_table_get_filter(
register_srt_t* srt,
const char *opt_arg,
const char **filter,
char** err);
169 WS_DLL_PUBLIC
void srt_table_dissector_init(
register_srt_t* srt, GArray* srt_array, srt_gui_init_cb gui_callback,
void *callback_data);
177 WS_DLL_PUBLIC gchar* srt_table_get_tap_string(
register_srt_t* srt);
192 WS_DLL_PUBLIC
srt_stat_table* init_srt_table(
const char *name,
const char *short_name, GArray *srt_array,
int num_procs,
const char* proc_column_name,
193 const char *filter_string, srt_gui_init_cb gui_callback,
void* gui_data,
void* table_specific_data);
const char * short_name
Definition: srt_table.h:32
Definition: srt_table.h:30
Definition: packet_info.h:44
Definition: srt_table.h:52
Definition: srt_table.c:19
gboolean(* wmem_foreach_func)(const void *key, void *value, void *userdata)
Definition: wmem_tree.h:213
Definition: srt_table.h:23
srt_procedure_t * procedures
Definition: srt_table.h:37
char * filter_string
Definition: srt_table.h:33
timestat_t stats
Definition: srt_table.h:25
const char * proc_column_name
Definition: srt_table.h:36
GArray * srt_array
Definition: srt_table.h:53
void * user_data
Definition: srt_table.h:54
Definition: timestats.h:24
int num_procs
Definition: srt_table.h:35
char * procedure
Definition: srt_table.h:26
const char * name
Definition: srt_table.h:31