diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-13 17:24:47 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-13 17:24:47 +0000 |
commit | 464ebd1ae7116a87e55a4007dd06a5923c413adc (patch) | |
tree | 13fa3ec9673f3126a5c364f420f9b9ed4d204aac /prefs-int.h | |
parent | 28e9793f2fc972ef9ba85f5337712457e19f91cf (diff) |
changed read_prefs_file(): read in a generic config file and do a callback to
pref_set_pair_fct() for every key/value pair found
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9274 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'prefs-int.h')
-rw-r--r-- | prefs-int.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/prefs-int.h b/prefs-int.h index 8c989bfcf1..176d0e2b55 100644 --- a/prefs-int.h +++ b/prefs-int.h @@ -2,7 +2,7 @@ * Definitions for implementation of preference handling routines; * used by "friends" of the preferences type. * - * $Id: prefs-int.h,v 1.10 2002/12/20 01:48:54 guy Exp $ + * $Id: prefs-int.h,v 1.11 2003/12/13 17:24:47 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -89,4 +89,14 @@ struct preference { gint find_val_for_string(const char *needle, const enum_val_t *haystack, gint default_value); + +/* read_prefs_file: read in a generic config file and do a callback to */ +/* pref_set_pair_fct() for every key/value pair found */ +typedef int (*pref_set_pair_cb) (gchar *key, gchar *value); + +int +read_prefs_file(const char *pf_path, FILE *pf, pref_set_pair_cb pref_set_pair_fct); + + + #endif /* prefs-int.h */ |