aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-31 08:36:46 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-31 08:36:46 +0000
commit6ee04dad33e600d932b2d44645727b962962f7d2 (patch)
tree8489f74ce723f1b02efa28d4257f15538589f499 /prefs.h
parent62000543044919a83ca00d16d4a21610cec43a8a (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. svn path=/trunk/; revision=3489
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;