diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2003-12-13 17:24:47 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2003-12-13 17:24:47 +0000 |
commit | 792fb5f8fb409c9241f197894a36fcfea5e8539c (patch) | |
tree | 13fa3ec9673f3126a5c364f420f9b9ed4d204aac /prefs-int.h | |
parent | 3914b812b0d30bf3eb7787a554a6d5cdde1e7be1 (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
svn path=/trunk/; revision=9274
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 */ |