struct pa_glib_mainloop;
/** Create a new GLIB main loop object for the specified GLIB main loop context. If c is NULL the default context is used. */
+#if GLIB_MAJOR_VERSION >= 2
struct pa_glib_mainloop *pa_glib_mainloop_new(GMainContext *c);
+#else
+struct pa_glib_mainloop *pa_glib_mainloop_new(void);
+#endif
+
/** Free the GLIB main loop object */
void pa_glib_mainloop_free(struct pa_glib_mainloop* g);