Path: blob/master/thirdparty/linuxbsd_headers/pulse/glib-mainloop.h
9905 views
#ifndef fooglibmainloophfoo1#define fooglibmainloophfoo23/***4This file is part of PulseAudio.56Copyright 2004-2006 Lennart Poettering7Copyright 2006 Pierre Ossman <[email protected]> for Cendio AB89PulseAudio is free software; you can redistribute it and/or modify10it under the terms of the GNU Lesser General Public License as published11by the Free Software Foundation; either version 2.1 of the License,12or (at your option) any later version.1314PulseAudio is distributed in the hope that it will be useful, but15WITHOUT ANY WARRANTY; without even the implied warranty of16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU17General Public License for more details.1819You should have received a copy of the GNU Lesser General Public License20along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.21***/2223#include <glib.h>2425#include <pulse/mainloop-api.h>26#include <pulse/cdecl.h>27#include <pulse/version.h>2829/** \page glib-mainloop GLIB Main Loop Bindings30*31* \section overv_sec Overview32*33* The GLIB main loop bindings are extremely easy to use. All that is34* required is to create a pa_glib_mainloop object using35* pa_glib_mainloop_new(). When the main loop abstraction is needed, it is36* provided by pa_glib_mainloop_get_api().37*38*/3940/** \file41* GLIB main loop support42*43* See also \subpage glib-mainloop44*/4546PA_C_DECL_BEGIN4748/** An opaque GLIB main loop object */49typedef struct pa_glib_mainloop pa_glib_mainloop;5051/** Create a new GLIB main loop object for the specified GLIB main52* loop context. Takes an argument c for the53* GMainContext to use. If c is NULL the default context is used. */54pa_glib_mainloop *pa_glib_mainloop_new(GMainContext *c);5556/** Free the GLIB main loop object */57void pa_glib_mainloop_free(pa_glib_mainloop* g);5859/** Return the abstract main loop API vtable for the GLIB main loop60object. No need to free the API as it is owned by the loop61and is destroyed when the loop is freed. */62pa_mainloop_api* pa_glib_mainloop_get_api(pa_glib_mainloop *g);6364PA_C_DECL_END6566#endif676869