diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-14 20:25:32 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-14 20:25:32 +0000 |
commit | 22cb23eedb2eae7c79dc8fcf395be08bfc666256 (patch) | |
tree | f0993d4a26cb6e311d052b40ac5b8efc1239c145 /polyp/glib-mainloop.h | |
parent | 1c2ec47cf1506ad1c75c088d476ae382170df62c (diff) |
implement proper refcounting in polyplib
split polyplib to multiple modules
add some prelimenary documentation
add doxygen support
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@123 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/glib-mainloop.h')
-rw-r--r-- | polyp/glib-mainloop.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/polyp/glib-mainloop.h b/polyp/glib-mainloop.h index 7655108a..c67e72bd 100644 --- a/polyp/glib-mainloop.h +++ b/polyp/glib-mainloop.h @@ -4,20 +4,26 @@ #include <glib.h> #include "mainloop-api.h" +#include "cdecl.h" -#ifdef __cplusplus -extern "C" { -#endif +/** \file + * GLIB main loop support */ + +PA_C_DECL_BEGIN +/** \struct pa_glib_mainloop + * A GLIB main loop object */ 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. */ struct pa_glib_mainloop *pa_glib_mainloop_new(GMainContext *c); + +/** Free the GLIB main loop object */ void pa_glib_mainloop_free(struct pa_glib_mainloop* g); + +/** Return the abstract main loop API vtable for the GLIB main loop object */ struct pa_mainloop_api* pa_glib_mainloop_get_api(struct pa_glib_mainloop *g); - -#ifdef __cplusplus -} -#endif +PA_C_DECL_BEGIN #endif |