aboutsummaryrefslogtreecommitdiffstats
path: root/caputils
diff options
context:
space:
mode:
authorJim Young <jyoung@gsu.edu>2018-12-25 12:42:03 -0500
committerAnders Broman <a.broman58@gmail.com>2018-12-25 21:22:54 +0000
commit530c64f22c942104b64b43fd8d33e78efdcdb700 (patch)
treeea654199107a066a36c81ae2159c6f8ea97b19c7 /caputils
parentc899c002afc3c10e9cbe137677af3996340972af (diff)
prefs: Document the possible hidden interface types
The preferences file includes an optional comma-separated string of hidden interface type integer values (gui.interfaces_hidden_types). Augment the interface_type enum and the preferences file to better document what these interface type integer values stand for. Change-Id: Idd268ed7f252cfa56dd046d24ff7ff597018f5d3 Reviewed-on: https://code.wireshark.org/review/31191 Petri-Dish: Jim Young <jim.young.ws@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'caputils')
-rw-r--r--caputils/capture_ifinfo.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/caputils/capture_ifinfo.h b/caputils/capture_ifinfo.h
index 171561d16c..83b020c5f0 100644
--- a/caputils/capture_ifinfo.h
+++ b/caputils/capture_ifinfo.h
@@ -17,17 +17,21 @@ extern "C" {
#include <glib.h>
+/*
+ * Explicitly set the interface_type enum values as these values are exposed
+ * in the preferences gui.interfaces_hidden_types string.
+ */
typedef enum {
- IF_WIRED,
- IF_AIRPCAP,
- IF_PIPE,
- IF_STDIN,
- IF_BLUETOOTH,
- IF_WIRELESS,
- IF_DIALUP,
- IF_USB,
- IF_EXTCAP,
- IF_VIRTUAL
+ IF_WIRED = 0,
+ IF_AIRPCAP = 1,
+ IF_PIPE = 2,
+ IF_STDIN = 3,
+ IF_BLUETOOTH = 4,
+ IF_WIRELESS = 5,
+ IF_DIALUP = 6,
+ IF_USB = 7,
+ IF_EXTCAP = 8,
+ IF_VIRTUAL = 9
} interface_type;
/*