aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stat_cmd_args.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-07-23 13:38:55 -0400
committerGerald Combs <gerald@wireshark.org>2014-07-26 20:59:42 +0000
commit31ecdf5b06bff3bb2e706e840c28c519698e6f67 (patch)
tree71b3e59889e862560412d317df71113f66b094b6 /epan/stat_cmd_args.h
parent507d07eda6ad562d4567cf0ee83aa9b03997beca (diff)
Refactor "common" Conversation table functionality.
Refactor (non-GUI) conversation table functionality from gtk/Qt to epan. Also refactor "common GUI" conversation table functionality. The idea is to not have to modify the GUI when a dissector adds a new "conversation type" Change-Id: I11f08d0d7edd631218663ba4b902c4a4c849acda Reviewed-on: https://code.wireshark.org/review/3113 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/stat_cmd_args.h')
-rw-r--r--epan/stat_cmd_args.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/stat_cmd_args.h b/epan/stat_cmd_args.h
index a8bfaf60a2..499bf32a5d 100644
--- a/epan/stat_cmd_args.h
+++ b/epan/stat_cmd_args.h
@@ -30,6 +30,13 @@
extern "C" {
#endif /* __cplusplus */
+/** Register a stat ("-z") command line argument.
+ *
+ * @param cmd The command name without arguments, e.g. "conv,tcp" or "io,stat".
+ * MUST be valid when other stat_cmd routines below are called.
+ * @param func Callbak to be invoked when the CLI argument is supplied.
+ * @param userdata Additional data for the callback.
+ */
WS_DLL_PUBLIC void register_stat_cmd_arg(const char *cmd,
void (*func)(const char *arg,void* userdata), void* userdata);
WS_DLL_PUBLIC gboolean process_stat_cmd_arg(char *optstr);