diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-10-10 06:05:48 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-10-10 06:05:48 +0000 |
commit | 83ed1ee0ea31046f2bea500fce45e625cfc3cbfd (patch) | |
tree | 9d8c73e487d0b6ed3c33462e855e6d48ef11c977 /pcap-util.h | |
parent | 3c23d6a1f70274b696ed92b24865333e1315cf7c (diff) |
Get the version number of the libpcap/WinPcap with which we're running
with "pcap_lib_version()", if available.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8656 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'pcap-util.h')
-rw-r--r-- | pcap-util.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pcap-util.h b/pcap-util.h index fe9c71bbd3..d110f3c0fc 100644 --- a/pcap-util.h +++ b/pcap-util.h @@ -1,7 +1,7 @@ /* pcap-util.h * Utility definitions for packet capture * - * $Id: pcap-util.h,v 1.4 2003/09/10 05:35:24 guy Exp $ + * $Id: pcap-util.h,v 1.5 2003/10/10 06:05:48 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -58,4 +58,19 @@ void free_interface_list(GList *if_list); #endif /* HAVE_LIBPCAP */ +/* + * Append to a GString an indication of the version of libpcap/WinPcap + * with which we were compiled, if we were, or an indication that we + * weren't compiled with libpcap/WinPcap, if we weren't. + */ +extern void get_compiled_pcap_version(GString *str); + +/* + * Append to a GString an indication of the version of libpcap/WinPcap + * with which we're running, or an indication that we're not running + * with libpcap/WinPcap, if we were compiled with libpcap/WinPcap, + * or nothing, if we weren't compiled with libpcap/WinPcap. + */ +extern void get_runtime_pcap_version(GString *str); + #endif /* __PCAP_UTIL_H__ */ |