From 1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Fri, 1 Mar 2013 23:53:11 +0000 Subject: Export libwireshark symbols using WS_DLL_PUBLIC define Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992 --- epan/epan.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'epan/epan.h') diff --git a/epan/epan.h b/epan/epan.h index 492980b7dd..cec8191eb6 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -32,6 +32,7 @@ extern "C" { #include "frame_data.h" #include "column_info.h" #include "register.h" +#include "ws_symbol_export.h" typedef struct _epan_dissect_t epan_dissect_t; @@ -82,6 +83,7 @@ Ref2 for further edits - delete when done - \ref radiotap */ /** init the whole epan module, this is used to be called only once in a program */ +WS_DLL_PUBLIC void epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer client_data), void (*register_all_handoffs_func)(register_cb cb, gpointer client_data), register_cb cb, @@ -92,6 +94,7 @@ void epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer clie void (*report_write_failure_fcn_p)(const char *, int)); /** cleanup the whole epan module, this is used to be called only once in a program */ +WS_DLL_PUBLIC void epan_cleanup(void); /** @@ -132,45 +135,54 @@ epan_new(void); void epan_free(epan_t*); -extern const gchar* +WS_DLL_PUBLIC const gchar* epan_get_version(void); /** initialize an existing single packet dissection */ +WS_DLL_PUBLIC epan_dissect_t* epan_dissect_init(epan_dissect_t *edt, const gboolean create_proto_tree, const gboolean proto_tree_visible); /** get a new single packet dissection * should be freed using epan_dissect_free() after packet dissection completed */ +WS_DLL_PUBLIC epan_dissect_t* epan_dissect_new(const gboolean create_proto_tree, const gboolean proto_tree_visible); /** Indicate whether we should fake protocols or not */ +WS_DLL_PUBLIC void epan_dissect_fake_protocols(epan_dissect_t *edt, const gboolean fake_protocols); /** run a single packet dissection */ +WS_DLL_PUBLIC void epan_dissect_run(epan_dissect_t *edt, struct wtap_pkthdr *phdr, const guint8* data, frame_data *fd, column_info *cinfo); +WS_DLL_PUBLIC void epan_dissect_run_with_taps(epan_dissect_t *edt, struct wtap_pkthdr *phdr, const guint8* data, frame_data *fd, column_info *cinfo); /** Prime a proto_tree using the fields/protocols used in a dfilter. */ +WS_DLL_PUBLIC void epan_dissect_prime_dfilter(epan_dissect_t *edt, const dfilter_t *dfcode); /** fill the dissect run output into the packet list columns */ +WS_DLL_PUBLIC void epan_dissect_fill_in_columns(epan_dissect_t *edt, const gboolean fill_col_exprs, const gboolean fill_fd_colums); /** releases resources attached to the packet dissection. DOES NOT free the actual pointer */ +WS_DLL_PUBLIC void epan_dissect_cleanup(epan_dissect_t* edt); /** free a single packet dissection */ +WS_DLL_PUBLIC void epan_dissect_free(epan_dissect_t* edt); @@ -182,12 +194,14 @@ epan_custom_set(epan_dissect_t *edt, int id, gint occurrence, /** * Get compile-time information for libraries used by libwireshark. */ +WS_DLL_PUBLIC void epan_get_compiled_version_info(GString *str); /** * Get runtime information for libraries used by libwireshark. */ +WS_DLL_PUBLIC void epan_get_runtime_version_info(GString *str); -- cgit v1.2.3