From ad78694e7640d60eb1a12c18fac3c02b2fe31333 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 23 Jul 2013 08:56:30 +0000 Subject: [PATCH] From Thomas ERSFELD (GSoC13) Prepare inclusion of Follow (TCP/UDP/SSL) feature in Qtshark svn path=/trunk/; revision=50819 --- epan/dissectors/packet-tcp.h | 8 ++++++++ epan/follow.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h index 88b84cda43..4070acc289 100644 --- a/epan/dissectors/packet-tcp.h +++ b/epan/dissectors/packet-tcp.h @@ -24,6 +24,10 @@ #ifndef __PACKET_TCP_H__ #define __PACKET_TCP_H__ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #include "ws_symbol_export.h" #ifndef __CONVERSATION_H__ @@ -287,4 +291,8 @@ extern gboolean decode_tcp_ports(tvbuff_t *, int, packet_info *, proto_tree *, i */ extern void add_tcp_process_info(guint32 frame_num, address *local_addr, address *remote_addr, guint16 local_port, guint16 remote_port, guint32 uid, guint32 pid, gchar *username, gchar *command); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif diff --git a/epan/follow.h b/epan/follow.h index 585ea07438..cd92221aa5 100644 --- a/epan/follow.h +++ b/epan/follow.h @@ -27,6 +27,10 @@ #ifndef __FOLLOW_H__ #define __FOLLOW_H__ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #include #include "ws_symbol_export.h" @@ -63,4 +67,8 @@ typedef struct { WS_DLL_PUBLIC void follow_stats(follow_stats_t* stats); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif