aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/epan/epan.c b/epan/epan.c
index e0503801d1..464cc75cb1 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -209,6 +209,28 @@ epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer client_da
return status;
}
+/*
+ * Load all settings, from the current profile, that affect libwireshark.
+ */
+e_prefs *
+epan_load_settings(void)
+{
+ e_prefs *prefs_p;
+
+ /* load the decode as entries of the current profile */
+ load_decode_as_entries();
+
+ prefs_p = read_prefs();
+
+ /*
+ * Read the files that enable and disable protocols and heuristic
+ * dissectors.
+ */
+ read_enabled_and_disabled_lists();
+
+ return prefs_p;
+}
+
void
epan_cleanup(void)
{