aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-01-07 19:13:03 +0000
committerGerald Combs <gerald@wireshark.org>2013-01-07 19:13:03 +0000
commit0fa6a4c4216bf3c1e5e19d007893b8494e1860d0 (patch)
tree4623d8fe653f56522126acddc781e705060d27ab /epan/prefs.h
parentb671f8dbd6b6a2ae62ac0a5459930eb7c86979a3 (diff)
Allow editing via the advanced preferences tree. Double-clicking an
item's name, status, or type resets it to its default value. Double-clicking the item's value lets you edit it. Implement the advanced search field. (Clicking OK and Cancel still doesn't yet do anything.) Note that we could probably use a prefs_register_{uint16|port}_preference routine for 16-bit values. Make reset_pref public. Update some names and descriptions. svn path=/trunk/; revision=46986
Diffstat (limited to 'epan/prefs.h')
-rw-r--r--epan/prefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/prefs.h b/epan/prefs.h
index de0909eac1..461a04753a 100644
--- a/epan/prefs.h
+++ b/epan/prefs.h
@@ -514,6 +514,12 @@ extern e_prefs *read_prefs(int *, int *, char **, int *, int *, char **);
into "*pf_path_return", and return the errno. */
extern int write_prefs(char **);
+/** Set a preference to its default value
+ *
+ * @param pref A preference.
+ */
+extern void reset_pref(pref_t *pref);
+
/*
* Given a string of the form "<pref name>:<pref value>", as might appear
* as an argument to a "-o" option, parse it and set the preference in