aboutsummaryrefslogtreecommitdiffstats
path: root/airpcap_loader.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-01-21 23:45:36 +0000
committerGuy Harris <guy@alum.mit.edu>2007-01-21 23:45:36 +0000
commitcc2274816903f4ef20b406e687dfa3d4de1ac488 (patch)
tree5512510787af52895ceb934713d75bf182fa3033 /airpcap_loader.h
parent62c148c1d58c84791033da807db32c5a5752c4b8 (diff)
Have the routines to get interface lists take a pointer to a "gchar *"
as an argument, and, on an error, if they have an error message, have them set that "gchar *" to point to a g_malloc()ed string containing the error message, rather than taking a pointer to a buffer for that message as an argument. That's more like what's done in Wiretap, and doesn't impose an upper limit on the lengths of those error messages. If that pointer is null, don't allocate the message string and return it. Have that error message already have the "cant_get" processing applied to it, so nobody other than those routines need to call the "cant_get" routines to process the error messages. Have get_airpcap_interface_list() explicitly set "*err" to the appropriate error code. Clean up indentation. svn path=/trunk/; revision=20521
Diffstat (limited to 'airpcap_loader.h')
-rw-r--r--airpcap_loader.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/airpcap_loader.h b/airpcap_loader.h
index 0ca213e86b..e0302d5cc2 100644
--- a/airpcap_loader.h
+++ b/airpcap_loader.h
@@ -305,13 +305,6 @@ airpcap_if_info_t* airpcap_driver_fake_if_info_new();
int load_airpcap(void);
/*
- * Get an error message string for a CANT_GET_INTERFACE_LIST error from
- * "get_airpcap_interface_list()".
- */
-gchar*
-cant_get_airpcap_if_list_error_message(const char *err_str);
-
-/*
* This function will use the airpcap.dll to find all the airpcap devices.
* Will return null if no device is found.
*/