1 /* cfutils.h
2  * Declarations of routines to work around deficiencies in Core Foundation,
3  * such as the lack of a routine to convert a CFString to a C string of
4  * arbitrary size.
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 2001 Gerald Combs
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  */
12 
13 #ifndef __WSUTIL_CFUTILS_H__
14 #define __WSUTIL_CFUTILS_H__
15 
16 #include "ws_symbol_export.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
21 
22 /*
23  * Convert a CFString to a g_malloc()ated C string.
24  */
25 WS_DLL_PUBLIC char *CFString_to_C_string(CFStringRef cfstring);
26 
27 #ifdef __cplusplus
28 }
29 #endif /* __cplusplus */
30 
31 #endif /* __WSUTIL_CFUTILS_H__ */
32