aboutsummaryrefslogtreecommitdiffstats
path: root/capture-wpcap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-12-29 23:09:42 +0000
committerGuy Harris <guy@alum.mit.edu>2011-12-29 23:09:42 +0000
commit7e531049a0dd26f8e87e6d866c0ff0c0dd01f0c9 (patch)
treee4171ec186256d2c30b6990a6ca38253229e10b3 /capture-wpcap.h
parent3864d5d19d5757ce74d5d282e36382a7fde1301f (diff)
Swallow cant_load_winpcap_err() up into capture-wpcap.c, so that
anything that uses WinPcap can use that message text in its error messages. svn path=/trunk/; revision=40335
Diffstat (limited to 'capture-wpcap.h')
-rw-r--r--capture-wpcap.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/capture-wpcap.h b/capture-wpcap.h
index cfe23828d7..3c8079599c 100644
--- a/capture-wpcap.h
+++ b/capture-wpcap.h
@@ -6,7 +6,6 @@
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2001 Gerald Combs
*
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@@ -32,8 +31,11 @@ extern "C" {
extern gboolean has_wpcap;
-void
-load_wpcap(void);
+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);
#ifdef __cplusplus
}