diff options
Diffstat (limited to 'epan/prefs-int.h')
-rw-r--r-- | epan/prefs-int.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/epan/prefs-int.h b/epan/prefs-int.h index e10cf3d61d..2a6dee279e 100644 --- a/epan/prefs-int.h +++ b/epan/prefs-int.h @@ -174,6 +174,21 @@ struct preference { */ typedef prefs_set_pref_e (*pref_set_pair_cb) (gchar *key, const gchar *value, void *private_data, gboolean return_range_errors); +/** Set the value of a string-like preference. */ +WS_DLL_PUBLIC +void +prefs_set_string_like_value(pref_t *pref, const gchar *value, gboolean *changed); + +/** Set the value of a range preference. Return FALSE on error, TRUE otherwise. */ +WS_DLL_PUBLIC +gboolean +prefs_set_range_value(pref_t *pref, const gchar *value, gboolean *changed); + +/** Set the value of an enum preference. */ +WS_DLL_PUBLIC +void +prefs_set_enum_value(pref_t *pref, const gchar *value, gboolean *changed); + /** read the preferences file (or similar) and call the callback * function to set each key/value pair found */ |