return array;
}
#endif
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 32))
+void
+g_queue_free_full (GQueue *queue, GDestroyNotify free_func)
+{
+ GList *cur;
+
+ cur = queue->head;
+
+ while (cur) {
+ free_func (cur->data);
+ cur = g_list_next (cur);
+ }
+
+ g_queue_free (queue);
+}
+#endif
guint
rspamd_url_hash (gconstpointer u)
#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 14))
void g_queue_clear (GQueue *queue);
#endif
-
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 32))
+void g_queue_free_full (GQueue *queue, GDestroyNotify free_func);
+#endif
/*
* Convert milliseconds to timeval fields