2012-11-22 06:02:49 +00:00
|
|
|
/* cfutils.h
|
|
|
|
* Declarations of routines to work around deficiencies in Core Foundation,
|
|
|
|
* such as the lack of a routine to convert a CFString to a C string of
|
|
|
|
* arbitrary size.
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 2001 Gerald Combs
|
|
|
|
*
|
2017-12-10 03:24:10 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2012-11-22 06:02:49 +00:00
|
|
|
*/
|
|
|
|
|
2014-06-21 18:01:19 +00:00
|
|
|
#ifndef __WSUTIL_CFUTILS_H__
|
|
|
|
#define __WSUTIL_CFUTILS_H__
|
2012-11-22 06:02:49 +00:00
|
|
|
|
2014-06-21 18:01:19 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Convert a CFString to a g_malloc()ated C string.
|
|
|
|
*/
|
|
|
|
WS_DLL_PUBLIC char *CFString_to_C_string(CFStringRef cfstring);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __WSUTIL_CFUTILS_H__ */
|