aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.h
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-03-01 23:53:11 +0000
committerBalint Reczey <balint@balintreczey.hu>2013-03-01 23:53:11 +0000
commit1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 (patch)
treed6dde0ea7b6e6e15cc2c51a5f478fb85965b9720 /epan/epan.h
parent0b8d70bfb715bc3d89b6dfae86fc79d7c4387f02 (diff)
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
Diffstat (limited to 'epan/epan.h')
-rw-r--r--epan/epan.h16
1 files changed, 15 insertions, 1 deletions
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);