fix for netmon 3.x captures
[metze/wireshark/wip.git] / extcap.h
index 49e23ffb706ebd830fc36404ea298fc093138217..55f4af7f69cb10ac1f37b16caa6b162ba092395e 100644 (file)
--- a/extcap.h
+++ b/extcap.h
@@ -6,7 +6,7 @@
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #ifndef __EXTCAP_H__
 #define EXTCAP_CONTROL_OUT_PREFIX "wireshark_control_ws_to_ext"
 
 #define EXTCAP_ARGUMENT_CONFIG                  "--extcap-config"
+#define EXTCAP_ARGUMENT_RELOAD_OPTION           "--extcap-reload-option"
 #define EXTCAP_ARGUMENT_LIST_INTERFACES         "--extcap-interfaces"
 #define EXTCAP_ARGUMENT_INTERFACE               "--extcap-interface"
 #define EXTCAP_ARGUMENT_LIST_DLTS               "--extcap-dlts"
+#define EXTCAP_ARGUMENT_VERSION                 "--extcap-version"
 
 #define EXTCAP_ARGUMENT_RUN_CAPTURE             "--capture"
 #define EXTCAP_ARGUMENT_CAPTURE_FILTER          "--extcap-capture-filter"
@@ -63,10 +65,6 @@ struct _extcap_arg;
 extern "C" {
 #endif /* __cplusplus */
 
-/* Count the number of extcap binaries */
-guint
-extcap_count(void);
-
 /* Registers preferences for all interfaces */
 void
 extcap_register_preferences(void);
@@ -98,10 +96,20 @@ void
 extcap_clear_interfaces(void);
 
 /* returns the configuration for the given interface name, or an
- * empty list, if no configuration has been found */
+ * empty list, if no configuration has been found
+ * @param ifname the interface name
+ */
 GList *
 extcap_get_if_configuration(const char * ifname);
 
+/* returns the configuration values for the given argument, or an
+ * empty list, if no values could been found
+ * @param ifname the interface name
+ * @param argname the name of the argument, for which the values should be retrieved
+ */
+GList *
+extcap_get_if_configuration_values(const char * ifname, const char * argname, GHashTable * arguments);
+
 /**
  * Check if the capture filter for the given interface name is valid.
  * @param ifname Interface to check
@@ -131,7 +139,7 @@ gboolean
 extcap_init_interfaces(capture_options * capture_opts);
 
 gboolean
-extcap_create_pipe(const gchar *ifname, gchar **fifo, const gchar *pipe_prefix, gboolean byte_mode);
+extcap_create_pipe(const gchar *ifname, gchar **fifo, const gchar *pipe_prefix);
 
 /* Clean up all if related stuff */
 void