1 /* capture_win_ifnames.h
2 * Routines supporting the use of Windows friendly interface names within Wireshark
3 * Copyright 2011-2012, Mike Garratt <wireshark@evn.co.nz>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef CAPTURE_WIN_IFNAMES_H
25 #define CAPTURE_WIN_IFNAMES_H
28 * If a string is a GUID in {}, fill in a GUID structure with the GUID
29 * value and return TRUE; otherwise, if the string is not a valid GUID
30 * in {}, return FALSE.
32 extern gboolean parse_as_guid(const char *guid_text, GUID *guid);
34 /* Get the friendly name for the given GUID */
35 extern char *get_interface_friendly_name_from_device_guid(GUID *guid);
38 * Given an interface name, try to extract the GUID from it and parse it.
39 * If that fails, return NULL; if that succeeds, attempt to get the
40 * friendly name for the interface in question. If that fails, return
41 * NULL, otherwise return the friendly name, allocated with g_malloc()
42 * (so that it must be freed with g_free()).
44 extern char *get_windows_interface_friendly_name(const char *interface_devicename);