/* glib-compat.h * Definitions to provide some functions that are not present in older * GLIB versions (down to 2.22) * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef GLIB_COMPAT_H #define GLIB_COMPAT_H #include "ws_symbol_export.h" #include "ws_attributes.h" #if !GLIB_CHECK_VERSION(2, 28, 0) WS_DLL_PUBLIC void g_slist_free_full(GSList *list, GDestroyNotify free_func); WS_DLL_PUBLIC void g_list_free_full(GList *list, GDestroyNotify free_func); WS_DLL_PUBLIC gint64 g_get_monotonic_time (void); #endif /* !GLIB_CHECK_VERSION(2, 28, 0) */ #if !GLIB_CHECK_VERSION(2, 30, 0) WS_DLL_PUBLIC GPtrArray* g_ptr_array_new_full(guint reserved_size, GDestroyNotify element_free_func); #endif /* !GLIB_CHECK_VERSION(2, 30, 0) */ #if !GLIB_CHECK_VERSION(2,31,18) WS_DLL_PUBLIC gpointer g_async_queue_timeout_pop(GAsyncQueue *queue, guint64 timeout); #endif /* !GLIB_CHECK_VERSION(2,31,18) */ #if !GLIB_CHECK_VERSION(2,31,0) WS_DLL_PUBLIC GThread *g_thread_new (const gchar *name, GThreadFunc func, gpointer data); #endif /* !GLIB_CHECK_VERSION(2,31,0) */ #endif /* GLIB_COMPAT_H */