2001-04-03 05:26:27 +00:00
|
|
|
/* capture-wpcap.h
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
2008-01-08 22:54:51 +00:00
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2001-04-03 05:26:27 +00:00
|
|
|
* Copyright 2001 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later*/
|
2001-04-03 05:26:27 +00:00
|
|
|
|
|
|
|
#ifndef CAPTURE_WPCAP_H
|
|
|
|
#define CAPTURE_WPCAP_H
|
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2001-04-03 05:26:27 +00:00
|
|
|
extern gboolean has_wpcap;
|
|
|
|
|
2011-12-29 23:09:42 +00:00
|
|
|
extern void load_wpcap(void);
|
|
|
|
|
|
|
|
/* error message, if WinPcap couldn't be loaded */
|
|
|
|
/* will use g_strdup, don't forget to g_free the returned string! */
|
|
|
|
extern char *cant_load_winpcap_err(const char *app_name);
|
2001-04-03 05:26:27 +00:00
|
|
|
|
2016-06-03 20:29:43 +00:00
|
|
|
/**
|
|
|
|
* Check to see if npf.sys is running.
|
|
|
|
* @return TRUE if npf.sys is running, FALSE if it's not or if there was
|
|
|
|
* an error checking its status.
|
|
|
|
*/
|
|
|
|
gboolean npf_sys_is_running(void);
|
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* CAPTURE_WPCAP_H */
|