Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$
glib-compat.h
Go to the documentation of this file.
00001 /* Compatibility macros to make supporting multiple GLib versions easier.
00002  * Public domain. */
00003 
00004 #ifndef AUD_GLIB_COMPAT_H
00005 #define AUD_GLIB_COMPAT_H
00006 
00007 #if ! GLIB_CHECK_VERSION (2, 14, 0)
00008 
00009 static inline void g_queue_init (GQueue * q)
00010 {
00011         q->head = q->tail = NULL;
00012         q->length = 0;
00013 }
00014 
00015 static inline void g_queue_clear (GQueue * q)
00016 {
00017         g_list_free (q->head);
00018         q->head = q->tail = NULL;
00019         q->length = 0;
00020 }
00021 
00022 #define G_QUEUE_INIT {NULL, NULL, 0}
00023 #define g_timeout_add_seconds(s, f, d) g_timeout_add (1000 * (s), (f), (d))
00024 #endif
00025 
00026 #endif /* AUD_GLIB_COMPAT_H */