decryption works, but addid doesn't because of unique pointer layers
[wireshark-sm.git] / capture / capture_win_ifnames.h
blob742eb0c1dfb4725a988c0114bc9c4f7e2eec763e
1 /** @file
3 * Routines supporting the use of Windows friendly interface names within Wireshark
4 * Copyright 2011-2012, Mike Garratt <wireshark@evn.co.nz>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef CAPTURE_WIN_IFNAMES_H
14 #define CAPTURE_WIN_IFNAMES_H
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.
21 extern bool parse_as_guid(const char *guid_text, GUID *guid);
23 /* Get the friendly name for the given GUID */
24 extern char *get_interface_friendly_name_from_device_guid(__in GUID *guid);
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()).
33 extern char *get_windows_interface_friendly_name(const char *interface_devicename);
35 #endif