summaryrefslogtreecommitdiff
path: root/epan/stat_cmd_args.h
diff options
context:
space:
mode:
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);