diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-10 00:28:53 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-10 00:28:53 +0000 |
commit | 3f07b1f8286be43f82c6b3515da79c2dc0abbb51 (patch) | |
tree | 63932d29924fd711736daefcabd0c749a877c961 /epan/prefs.h | |
parent | 890017cbfde3b962716fb71944ac07612a247012 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19467 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/prefs.h')
-rw-r--r-- | epan/prefs.h | 10 |
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 */ |