packet-smb-direct.c: add support for reassembling of fragments
[metze/wireshark/wip.git] / capture_win_ifnames.h
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>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
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.
13  *
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.
18  *
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.
22  */
23
24 #ifndef CAPTURE_WIN_IFNAMES_H
25 #define CAPTURE_WIN_IFNAMES_H
26
27 /*
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.
31  */
32 extern gboolean parse_as_guid(const char *guid_text, GUID *guid);
33
34 /* Get the friendly name for the given GUID */
35 extern char *get_interface_friendly_name_from_device_guid(GUID *guid);
36
37 /*
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()).
43  */
44 extern char *get_windows_interface_friendly_name(const char *interface_devicename);
45
46 #endif