2004-12-03 22:17:46 +03:00
|
|
|
#ifndef MC_GLIBCOMPAT_H
|
|
|
|
#define MC_GLIBCOMPAT_H
|
2003-09-23 00:21:48 +04:00
|
|
|
|
2009-10-21 23:18:03 +04:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
2003-11-20 23:25:33 +03:00
|
|
|
|
2020-01-24 21:21:35 +03:00
|
|
|
#if ! GLIB_CHECK_VERSION (2, 63, 3)
|
2019-12-01 14:59:35 +03:00
|
|
|
void g_clear_slist (GSList ** slist_ptr, GDestroyNotify destroy);
|
|
|
|
void g_clear_list (GList ** list_ptr, GDestroyNotify destroy);
|
2020-01-24 21:21:35 +03:00
|
|
|
#endif /* ! GLIB_CHECK_VERSION (2, 63, 3) */
|
2019-12-01 14:59:35 +03:00
|
|
|
|
2016-12-03 20:17:21 +03:00
|
|
|
#if ! GLIB_CHECK_VERSION (2, 32, 0)
|
|
|
|
void g_queue_free_full (GQueue * queue, GDestroyNotify free_func);
|
|
|
|
#endif /* ! GLIB_CHECK_VERSION (2, 32, 0) */
|
|
|
|
|
2019-01-13 13:20:04 +03:00
|
|
|
#if ! GLIB_CHECK_VERSION (2, 60, 0)
|
|
|
|
void g_queue_clear_full (GQueue * queue, GDestroyNotify free_func);
|
|
|
|
#endif /* ! GLIB_CHECK_VERSION (2, 60, 0) */
|
|
|
|
|
2020-11-16 19:33:26 +03:00
|
|
|
/* There is no such API in GLib2 */
|
|
|
|
GString *mc_g_string_copy (GString * dest, const GString * src);
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2003-09-23 00:21:48 +04:00
|
|
|
|
2009-10-21 23:18:03 +04:00
|
|
|
#endif /* MC_GLIBCOMPAT_H */
|