summaryrefslogtreecommitdiff
path: root/epan/prefs.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-10-10 00:28:53 +0000
committerGerald Combs <gerald@wireshark.org>2006-10-10 00:28:53 +0000
commit993305a75f6a4981c903fc477487108315a3e59f (patch)
tree63932d29924fd711736daefcabd0c749a877c961 /epan/prefs.h
parentc43a1dffed57a16ab254dc91674349fed729ab0c (diff)
downloadwireshark-993305a75f6a4981c903fc477487108315a3e59f.tar.gz
First step in integrating the AirPcap WEP preferences with those
from the 802.11 dissector. Use a #define for the maximum number of WEP keys. Use AirPcap's if we have it (64). Rename find_module() prefs_find_module() and make it public. svn path=/trunk/; revision=19467
Diffstat (limited to 'epan/prefs.h')
-rw-r--r--epan/prefs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/prefs.h b/epan/prefs.h
index 1605af2a7e..4b2187dd7c 100644
--- a/epan/prefs.h
+++ b/epan/prefs.h
@@ -351,6 +351,16 @@ extern void free_prefs(e_prefs *pr);
#define PREFS_SET_NO_SUCH_PREF 2 /* no such preference */
#define PREFS_SET_OBSOLETE 3 /* preference used to exist but no longer does */
+/** Given a module name, return a pointer to its pref_module struct,
+ * or NULL if it's not found.
+ *
+ * @param name The preference module name. Usually the same as the protocol
+ * name, e.g. "tcp".
+ * @return A pointer to the corresponding preference module, or NULL if it
+ * wasn't found.
+ */
+module_t *prefs_find_module(const char *name);
+
extern int prefs_set_pref(char *prefarg);
#endif /* prefs.h */