#include <epan/crypt/airpdcap_user.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Error values from "get_airpcap_interface_list()". */
#define CANT_GET_AIRPCAP_INTERFACE_LIST 0 /* error getting list */
#define NO_AIRPCAP_INTERFACES_FOUND 1 /* list is empty */
void
get_runtime_airpcap_version(GString *str);
+#ifdef __cplusplus
+}
#endif
+
+#endif /* __AIRPCAP_LOADER_H__ */
#ifdef HAVE_LIBPCAP
+#include <pcap.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
-#include <pcap.h>
-
/*
* A snapshot length of 0 is useless - and libpcap/WinPcap don't guarantee
* that a snapshot length of 0 will work, and, on some platforms, it won't
#ifndef CAPTURE_WPCAP_H
#define CAPTURE_WPCAP_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
extern gboolean has_wpcap;
void
load_wpcap(void);
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* CAPTURE_WPCAP_H */
#include "capture_opts.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
typedef enum {
capture_cb_capture_prepared,
capture_cb_capture_update_started,
*/
void capture_stat_stop(if_stat_cache_t *sc);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* capture.h */
#ifndef __CAPTURE_IFINFO_H__
#define __CAPTURE_IFINFO_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* The list of interfaces returned by "get_interface_list()" is
* a list of these structures.
void add_interface_to_remote_list(if_info_t *if_info);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __CAPTURE_IFINFO_H__ */
/** @file
- *
+ *
* capture info functions
*
*/
#include "capture_opts.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* open the info - init values (wtap, counts), create dialog */
extern void capture_info_open(capture_options *capture_opts);
extern void capture_info_ui_destroy(
capture_info *cinfo);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif /* capture_info.h */
#include "capture_ifinfo.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Current state of capture engine. XXX - differentiate states */
typedef enum {
CAPTURE_STOPPED, /**< stopped */
extern gboolean
capture_opts_trim_iface(capture_options *capture_opts, const char *capture_device);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* capture_opts.h */
#include "capture_opts.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/** @file
* GList of available capture interfaces.
*/
*/
const char *get_iface_description_for_interface(capture_options *capture_opts, guint i);
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __CAPTURE_UI_UTILS_H__ */
#ifndef CAPTURE_WPCAP_PACKET_H
#define CAPTURE_WPCAP_PACKET_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
extern void wpcap_packet_load(void);
extern int wpcap_packet_request_ulong(void *a, ULONG Oid, ULONG *value);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif /* CAPTURE_WPCAP_PACKET_H */
#include "frame_data_sequence.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Current state of file. */
typedef enum {
FILE_CLOSED, /* No file open */
extern void cap_file_init(capture_file *cf);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* cfile.h */
#ifndef __COLOR_H__
#define __COLOR_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Data structure holding RGB value for a color.
*
*/
gboolean initialize_color(color_t *color, guint16 red, guint16 green, guint16 blue);
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __COLOR_H__ */
#ifndef __COLOR_FILTERS_H__
#define __COLOR_FILTERS_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define CONVERSATION_COLOR_PREFIX "___conversation_color_filter___"
/** @file
* Color filters.
*/
void color_filter_list_delete(GSList **cfl);
-
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef DISABLED_PROTOS_H
+#define DISABLED_PROTOS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Item in a list of disabled protocols.
*/
* and "*errno_return" is set to the error.
*/
void save_disabled_protos_list(char **pref_path_return, int *errno_return);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* DISABLED_PROTOS_H */
#ifndef __BASE64_H__
#define __BASE64_H__
+#include <epan/tvbuff.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
-#include <epan/tvbuff.h>
/* In-place decoding of a base64 string. */
size_t epan_base64_decode(char *s);
#ifndef EPAN_H
#define EPAN_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <glib.h>
#include "frame_data.h"
#include "column_info.h"
void
epan_get_runtime_version_info(GString *str);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* EPAN_H */
#ifndef EPAN_DISSECT_H
#define EPAN_DISSECT_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include "tvbuff.h"
#include "proto.h"
#include "packet_info.h"
packet_info pi;
};
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif /* EPAN_DISSECT_H */
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _EX_OPT_H
#define _EX_OPT_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* will be called by main each time a -X option is found */
extern gboolean ex_opt_add(const gchar* optarg);
/* extracts the next value of a given key */
extern const gchar* ex_opt_get_next(const gchar* key);
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* _EX_OPT_H */
#ifndef __PREFS_H__
#define __PREFS_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <glib.h>
#include "color.h"
*/
extern gboolean prefs_capture_device_monitor_mode(const char *name);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* prefs.h */
#ifndef __STRUTIL_H__
#define __STRUTIL_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* ... thus, config.h needs to be #included */
/** @file
*/
gchar *string_replace(const gchar* str, const gchar *old_val, const gchar *new_val);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __STRUTIL_H__ */
#ifndef __TIMESTAMP_H__
#define __TIMESTAMP_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Type of time-stamp shown in the summary display.
*/
extern ts_seconds_type timestamp_get_seconds_type(void);
extern void timestamp_set_seconds_type(ts_seconds_type);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* timestamp.h */
#include <epan/guid-utils.h>
#include "exceptions.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/** @file
* "testy, virtual(-izable) buffer". They are testy in that they get mad when
* an attempt is made to access data beyond the bounds of their array. In that
/************** END OF ACCESSORS ****************/
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __TVBUFF_H__ */
#include "cfile.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
/** Return values from functions that only can succeed or fail. */
typedef enum {
void read_keytab_file(const char *);
#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* file.h */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef FILTERS_H
+#define FILTERS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Filter lists.
*/
*/
void copy_filter_list(filter_list_type_t dest_type, filter_list_type_t src_type);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* FILTERS_H */
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
+#include "file.h"
+#include <epan/timestamp.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
-#include "file.h"
-#include <epan/timestamp.h>
-
extern capture_file cfile;
#ifdef __cplusplus
#ifndef __RECENT_H__
#define __RECENT_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <glib.h>
/** @file
gboolean privs_warn_if_elevated;
gboolean privs_warn_if_no_npf;
GList *col_width_list; /* column widths */
- gchar *gui_fileopen_remembered_dir; /* folder of last capture loaded in File Open dialog */
+ gchar *gui_fileopen_remembered_dir; /* folder of last capture loaded in File Open dialog */
} recent_settings_t;
/** Global recent settings. */
extern int recent_set_arg(char *prefarg);
/** Get the column width for the given column
- *
+ *
* @param col column number
*/
extern gint recent_get_column_width(gint col);
/** Set the column width for the given column
- *
+ *
* @param col column number
* @param width column width
*/
extern void recent_set_column_width(gint col, gint width);
/** Get the column xalign for the given column
- *
+ *
* @param col column number
*/
extern gchar recent_get_column_xalign(gint col);
*/
extern void recent_set_column_xalign(gint col, gchar xalign);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* recent.h */
#ifndef __MAIN_STATUSBAR_H__
#define __MAIN_STATUSBAR_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
void profile_bar_update(void);
void packets_bar_update(void);
void statusbar_push_temporary_msg(const gchar *msg_format, ...)
G_GNUC_PRINTF(1, 2);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __MAIN_STATUSBAR_H__ */
#ifndef __PROGRESS_DLG_H__
#define __PROGRESS_DLG_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/** @file
* Progress (modal) dialog box routines.
* @ingroup dialog_group
/**
* Create a progress dialog, but only if it's not likely to disappear
- * immediately. This can be disconcerting for the user.
+ * immediately. This can be disconcerting for the user.
*
* @param task_title the task to do, e.g. "Loading"
* @param item_title the item to do, e.g. "capture.cap"
*/
void destroy_progress_dlg(progdlg_t *dlg);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __PROGRESS_DLG_H__ */
#ifndef __REGISTER_H__
#define __REGISTER_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <glib.h>
typedef enum {
extern void register_all_protocol_handoffs(register_cb cb, gpointer client_data);
extern void register_all_tap_listeners(void);
extern gulong register_count(void);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __REGISTER_H__ */