]> code.delx.au - pulseaudio/blob - polyp/glib-mainloop.h
proper ref counting for more objects
[pulseaudio] / polyp / glib-mainloop.h
1 #ifndef fooglibmainloophfoo
2 #define fooglibmainloophfoo
3
4 #include <glib.h>
5
6 #include "mainloop-api.h"
7 #include "cdecl.h"
8
9 /** \file
10 * GLIB main loop support */
11
12 PA_C_DECL_BEGIN
13
14 /** \struct pa_glib_mainloop
15 * A GLIB main loop object */
16 struct pa_glib_mainloop;
17
18 /** Create a new GLIB main loop object for the specified GLIB main loop context. If c is NULL the default context is used. */
19 struct pa_glib_mainloop *pa_glib_mainloop_new(GMainContext *c);
20
21 /** Free the GLIB main loop object */
22 void pa_glib_mainloop_free(struct pa_glib_mainloop* g);
23
24 /** Return the abstract main loop API vtable for the GLIB main loop object */
25 struct pa_mainloop_api* pa_glib_mainloop_get_api(struct pa_glib_mainloop *g);
26
27 PA_C_DECL_END
28
29 #endif