aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-09 12:27:57 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-09 22:40:30 +0000
commit6b3714254d41f4e18ecc1df017804c9d94d21d9b (patch)
treeb3fb664550e8d60dc19088f3002f1e53b1ef6e59 /epan/epan.h
parent7d5ce06cbe35f3f818695c87e5b0f42172ee3784 (diff)
Pull all the "load settings" calls into a epan_load_settings() routine.
That way, nothing using libwireshark needs to know what settings need to be loaded, they just call epan_load_settings(). Change-Id: I9390e259e286fc4f5acaeaac2767e4c3c4b656af Reviewed-on: https://code.wireshark.org/review/20983 Petri-Dish: Guy Harris <guy@alum.mit.edu> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/epan.h')
-rw-r--r--epan/epan.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/epan.h b/epan/epan.h
index f809c117f9..5e7e87cfa4 100644
--- a/epan/epan.h
+++ b/epan/epan.h
@@ -28,6 +28,7 @@ extern "C" {
#include <glib.h>
#include <epan/tvbuff.h>
+#include <epan/prefs.h>
#include <epan/frame_data.h>
#include "register.h"
#include "ws_symbol_export.h"
@@ -102,6 +103,12 @@ gboolean epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer
void (*register_all_handoffs_func)(register_cb cb, gpointer client_data),
register_cb cb, void *client_data);
+/**
+ * Load all settings, from the current profile, that affect epan.
+ */
+WS_DLL_PUBLIC
+e_prefs *epan_load_settings(void);
+
/** cleanup the whole epan module, this is used to be called only once in a program */
WS_DLL_PUBLIC
void epan_cleanup(void);