aboutsummaryrefslogtreecommitdiffstats
path: root/ui/taps.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-01-30 21:08:59 -0800
committerGuy Harris <gharris@sonic.net>2021-01-30 21:15:30 -0800
commit1f15c0899ee2d1f27b523928a39a49175bdc32b7 (patch)
tree977b0cdb81d094d7eb647a848b18bf620a47338a /ui/taps.h
parentb2db1517be11f9402613220269f63c373b9bf785 (diff)
epan: have a routine to register all tap listeners.
Pull the code to register plugin taps, and the loop to register built-in taps, into a single register_all_tap_listeners() routine. This leaves it up to libwireshark, not to the programs using it, to know how to register them.
Diffstat (limited to 'ui/taps.h')
-rw-r--r--ui/taps.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/taps.h b/ui/taps.h
index 4078e6d13f..8577bd5cd2 100644
--- a/ui/taps.h
+++ b/ui/taps.h
@@ -17,10 +17,7 @@ extern "C" {
#include <glib.h>
-typedef struct _tap_reg {
- const char *cb_name;
- void (*cb_func)(void);
-} tap_reg_t;
+#include <epan/tap.h>
extern tap_reg_t tap_reg_listener[];