Wireshark  4.3.0
The Wireshark network protocol analyzer
capture_win_ifnames.h
Go to the documentation of this file.
1 
13 #ifndef CAPTURE_WIN_IFNAMES_H
14 #define CAPTURE_WIN_IFNAMES_H
15 
16 /*
17  * If a string is a GUID in {}, fill in a GUID structure with the GUID
18  * value and return true; otherwise, if the string is not a valid GUID
19  * in {}, return false.
20  */
21 extern bool parse_as_guid(const char *guid_text, GUID *guid);
22 
23 /* Get the friendly name for the given GUID */
24 extern char *get_interface_friendly_name_from_device_guid(GUID *guid);
25 
26 /*
27  * Given an interface name, try to extract the GUID from it and parse it.
28  * If that fails, return NULL; if that succeeds, attempt to get the
29  * friendly name for the interface in question. If that fails, return
30  * NULL, otherwise return the friendly name, allocated with g_malloc()
31  * (so that it must be freed with g_free()).
32  */
33 extern char *get_windows_interface_friendly_name(const char *interface_devicename);
34 
35 #endif