GLIB main loop support. More...
Go to the source code of this file.
Typedefs | |
typedef struct pa_glib_mainloop | pa_glib_mainloop |
An opaque GLIB main loop object. | |
Functions | |
pa_glib_mainloop * | pa_glib_mainloop_new (GMainContext *c) |
Create a new GLIB main loop object for the specified GLIB main loop context. | |
void | pa_glib_mainloop_free (pa_glib_mainloop *g) |
Free the GLIB main loop object. | |
pa_mainloop_api * | pa_glib_mainloop_get_api (pa_glib_mainloop *g) |
Return the abstract main loop API vtable for the GLIB main loop object. |
GLIB main loop support.
typedef struct pa_glib_mainloop pa_glib_mainloop |
An opaque GLIB main loop object.
void pa_glib_mainloop_free | ( | pa_glib_mainloop * | g | ) |
Free the GLIB main loop object.
pa_mainloop_api* pa_glib_mainloop_get_api | ( | pa_glib_mainloop * | g | ) |
Return the abstract main loop API vtable for the GLIB main loop object.
No need of freeing the API as it is owned by the loop and it is destroyed when this dies
pa_glib_mainloop* pa_glib_mainloop_new | ( | GMainContext * | c | ) |
Create a new GLIB main loop object for the specified GLIB main loop context.
Takes an argument c for the GMainContext to use. If c is NULL the default context is used.