diff options
Diffstat (limited to 'epan')
-rw-r--r-- | epan/epan.h | 16 | ||||
-rw-r--r-- | epan/tap.h | 14 |
2 files changed, 19 insertions, 11 deletions
diff --git a/epan/epan.h b/epan/epan.h index 24d751e3d1..c668fa0423 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -21,8 +21,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef EPAN_H -#define EPAN_H +#ifndef __EPAN_H__ +#define __EPAN_H__ #ifdef __cplusplus extern "C" { @@ -47,16 +47,16 @@ typedef struct _epan_dissect_t epan_dissect_t; @b Sections: - \ref proto_pub */ -/* +/* Ref 1 Epan -Ethereal Packet ANalyzer (XXX - is this correct?) the packet analyzing engine. Source code can be found in the epan directory. +Ethereal Packet ANalyzer (XXX - is this correct?) the packet analyzing engine. Source code can be found in the epan directory. -Protocol-Tree - Keep data of the capture file protocol information. +Protocol-Tree - Keep data of the capture file protocol information. -Dissectors - The various protocol dissectors in epan/dissectors. +Dissectors - The various protocol dissectors in epan/dissectors. -Plugins - Some of the protocol dissectors are implemented as plugins. Source code can be found at plugins. +Plugins - Some of the protocol dissectors are implemented as plugins. Source code can be found at plugins. Display-Filters - the display filter engine at epan/dfilter @@ -191,4 +191,4 @@ epan_get_runtime_version_info(GString *str); } #endif /* __cplusplus */ -#endif /* EPAN_H */ +#endif /* __EPAN_H__ */ diff --git a/epan/tap.h b/epan/tap.h index 22d0fcd9ea..6c1b95ea11 100644 --- a/epan/tap.h +++ b/epan/tap.h @@ -22,11 +22,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef _TAP_H_ -#define _TAP_H_ +#ifndef __TAP_H__ +#define __TAP_H__ #include <epan/epan.h> +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + typedef void (*tap_reset_cb)(void *tapdata); typedef gboolean (*tap_packet_cb)(void *tapdata, packet_info *pinfo, epan_dissect_t *edt, const void *data); typedef void (*tap_draw_cb)(void *tapdata); @@ -61,4 +65,8 @@ extern gboolean have_filtering_tap_listeners(void); extern guint union_of_tap_listener_flags(void); extern const void *fetch_tapped_data(int tap_id, int idx); -#endif +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __TAP_H__ */ |