aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-05-31 08:36:46 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-05-31 08:36:46 +0000
commit1913661564924076e42f9a9a8c84dd608375c973 (patch)
tree8489f74ce723f1b02efa28d4257f15538589f499 /prefs.h
parent944f38a0f59ecfc67f4adb83cd2e8a044520f76e (diff)
Support for "-N" flag enabling selected forms of name resolution, from
Joerg Meyer. Support for saving to the preferences file the settings for all types of name resolution. Do a case-insensitive check for "true" and "false" in Boolean preference settings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3489 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'prefs.h')
-rw-r--r--prefs.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/prefs.h b/prefs.h
index 580012a02c..a7daa2b4b8 100644
--- a/prefs.h
+++ b/prefs.h
@@ -1,7 +1,7 @@
/* prefs.h
* Definitions for preference handling routines
*
- * $Id: prefs.h,v 1.29 2001/04/15 03:37:13 guy Exp $
+ * $Id: prefs.h,v 1.30 2001/05/31 08:36:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -33,6 +33,24 @@
#define PR_DEST_CMD 0
#define PR_DEST_FILE 1
+/* 32 types are sufficient (as are 640k of RAM) */
+/* FIXME: Maybe MANUF/m, IP/i, IP6/6, IPX/x, UDP+TCP/t etc would be
+ more useful/consistent */
+#define PREFS_RESOLV_NONE 0x0
+#define PREFS_RESOLV_MAC 0x1
+#define PREFS_RESOLV_NETWORK 0x2
+#define PREFS_RESOLV_TRANSPORT 0x4
+#define PREFS_RESOLV_ALL 0xFFFFFFFF
+
+/*
+ * Convert a string listing name resolution types to a bitmask of
+ * those types.
+ *
+ * Set "*name_resolve" to the bitmask, and return '\0', on success;
+ * return the bad character in the string on error.
+ */
+char string_to_name_resolve(char *string, guint32 *name_resolve);
+
typedef struct _e_prefs {
gint pr_format;
gint pr_dest;
@@ -50,11 +68,10 @@ typedef struct _e_prefs {
gchar *gui_font_name;
color_t gui_marked_fg;
color_t gui_marked_bg;
- gboolean name_resolve;
+ guint32 name_resolve;
gboolean capture_prom_mode;
gboolean capture_real_time;
gboolean capture_auto_scroll;
-
} e_prefs;
extern e_prefs prefs;