Typedefs | Functions

glib-mainloop.h File Reference

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_mainlooppa_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_apipa_glib_mainloop_get_api (pa_glib_mainloop *g)
 Return the abstract main loop API vtable for the GLIB main loop object.

Detailed Description

GLIB main loop support.

See also GLIB Main Loop Bindings


Typedef Documentation

An opaque GLIB main loop object.


Function Documentation

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 to free the API as it is owned by the loop and is destroyed when the loop is freed.

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.