aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs-int.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-11-15 23:33:39 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-11-15 23:33:39 +0000
commit58c388e9039f307d43315089bff9e86166267f62 (patch)
tree88ab1706a147a3fd5952c42875bedcaae4545478 /epan/prefs-int.h
parent29c109e5bd8b56030af42c269ae5dcc0bb93a656 (diff)
add a "private_data" pointer to the read_prefs_file() function, which will be "tunneled" to the callback function. This seems to be generally a good idea - as a lot of GLib/GTK function doing similiar and I'll need this for the upcoming update mechanisms.
svn path=/trunk/; revision=19905
Diffstat (limited to 'epan/prefs-int.h')
-rw-r--r--epan/prefs-int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/prefs-int.h b/epan/prefs-int.h
index fb96100286..e785a5d144 100644
--- a/epan/prefs-int.h
+++ b/epan/prefs-int.h
@@ -98,10 +98,10 @@ gint find_val_for_string(const char *needle, const enum_val_t *haystack,
/* 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);
+typedef int (*pref_set_pair_cb) (gchar *key, gchar *value, void *private_data);
int
-read_prefs_file(const char *pf_path, FILE *pf, pref_set_pair_cb pref_set_pair_fct);
+read_prefs_file(const char *pf_path, FILE *pf, pref_set_pair_cb pref_set_pair_fct, void *private_data);