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/frame_data.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'epan/frame_data.h') diff --git a/epan/frame_data.h b/epan/frame_data.h index e227a73610..acda8d5d99 100644 --- a/epan/frame_data.h +++ b/epan/frame_data.h @@ -28,6 +28,7 @@ #include #include #include +#include "ws_symbol_export.h" #define PINFO_FD_NUM(pinfo) ((pinfo)->fd->num) #define PINFO_FD_VISITED(pinfo) ((pinfo)->fd->flags.visited) @@ -89,16 +90,16 @@ typedef struct { /* Utility routines used by packet*.c */ -extern void p_add_proto_data(frame_data *fd, int proto, void *proto_data); -extern void *p_get_proto_data(frame_data *fd, int proto); -extern void p_remove_proto_data(frame_data *fd, int proto); +WS_DLL_PUBLIC void p_add_proto_data(frame_data *fd, int proto, void *proto_data); +WS_DLL_PUBLIC void *p_get_proto_data(frame_data *fd, int proto); +void p_remove_proto_data(frame_data *fd, int proto); /** compare two frame_datas */ -extern gint frame_data_compare(const frame_data *fdata1, const frame_data *fdata2, int field); +WS_DLL_PUBLIC gint frame_data_compare(const frame_data *fdata1, const frame_data *fdata2, int field); -extern void frame_data_cleanup(frame_data *fdata); +WS_DLL_PUBLIC void frame_data_cleanup(frame_data *fdata); -extern void frame_data_init(frame_data *fdata, guint32 num, +WS_DLL_PUBLIC void frame_data_init(frame_data *fdata, guint32 num, const struct wtap_pkthdr *phdr, gint64 offset, guint32 cum_bytes); @@ -107,13 +108,13 @@ extern void frame_delta_abs_time(const frame_data *fdata, /** * Sets the frame data struct values before dissection. */ -extern void frame_data_set_before_dissect(frame_data *fdata, +WS_DLL_PUBLIC void frame_data_set_before_dissect(frame_data *fdata, nstime_t *elapsed_time, nstime_t *first_ts, const frame_data *prev_dis, const frame_data *prev_cap); -extern void frame_data_set_after_dissect(frame_data *fdata, +WS_DLL_PUBLIC void frame_data_set_after_dissect(frame_data *fdata, guint32 *cum_bytes); #endif /* __FRAME_DATA__ */ -- cgit v1.2.3