diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-04-01 09:08:27 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-04-01 09:08:27 +0000 |
commit | 6a33606bd0b861b08d08ca62ccee8dc85640c4fc (patch) | |
tree | f40c994e197238fcb60ea9206222296805d55dfb /epan/tap.h | |
parent | cb4ac46b1d418cefdfe6fa7e13dc398b9e58b296 (diff) |
Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
it's used to register a callback for a tap listener invoked if the
specified command line argument is specified to the "-z" flag.
Move it, along with routines to:
look up a "-z" argument in the table constructed by
"register_tap_listener_cmd_arg()" and either save the full
argument to "-z" and the corresponding listener if it's found or
return a failure indication if it isn't;
list the available tap listeners;
call the "init" routines for the tap listeners saved in the
table above;
and have Ethereal and Tethereal use those routines.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13993 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/tap.h')
-rw-r--r-- | epan/tap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/tap.h b/epan/tap.h index e8b27f2e9d..53774bf745 100644 --- a/epan/tap.h +++ b/epan/tap.h @@ -38,6 +38,10 @@ typedef void (*tap_draw_cb)(void *tapdata); extern void tap_init(void); +extern void register_tap_listener_cmd_arg(char *cmd, void (*func)(char *arg)); +extern gboolean process_tap_cmd_arg(char *optarg); +extern void list_tap_cmd_args(void); +extern void start_requested_taps(void); extern int register_tap(char *name); extern int find_tap_id(char *name); extern void tap_queue_packet(int tap_id, packet_info *pinfo, const void *tap_specific_data); |