| 
									
										
										
										
											2004-08-05 19:53:57 +00:00
										 |  |  | #ifndef fooglibmainloophfoo
 | 
					
						
							|  |  |  | #define fooglibmainloophfoo
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <glib.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "mainloop-api.h"
 | 
					
						
							| 
									
										
										
										
											2004-08-14 20:25:32 +00:00
										 |  |  | #include "cdecl.h"
 | 
					
						
							| 
									
										
										
										
											2004-08-05 19:53:57 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-14 20:25:32 +00:00
										 |  |  | /** \file
 | 
					
						
							|  |  |  |  * GLIB main loop support */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PA_C_DECL_BEGIN | 
					
						
							| 
									
										
										
										
											2004-08-06 23:07:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-14 20:25:32 +00:00
										 |  |  | /** \struct pa_glib_mainloop
 | 
					
						
							| 
									
										
										
										
											2004-08-17 17:17:22 +00:00
										 |  |  |  * An opaque GLIB main loop object */ | 
					
						
							| 
									
										
										
										
											2004-08-05 19:53:57 +00:00
										 |  |  | struct pa_glib_mainloop; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-14 20:25:32 +00:00
										 |  |  | /** Create a new GLIB main loop object for the specified GLIB main loop context. If c is NULL the default context is used. */ | 
					
						
							| 
									
										
										
										
											2004-08-06 23:07:48 +00:00
										 |  |  | struct pa_glib_mainloop *pa_glib_mainloop_new(GMainContext *c); | 
					
						
							| 
									
										
										
										
											2004-08-14 20:25:32 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** Free the GLIB main loop object */ | 
					
						
							| 
									
										
										
										
											2004-08-05 19:53:57 +00:00
										 |  |  | void pa_glib_mainloop_free(struct pa_glib_mainloop* g); | 
					
						
							| 
									
										
										
										
											2004-08-14 20:25:32 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** Return the abstract main loop API vtable for the GLIB main loop object */ | 
					
						
							| 
									
										
										
										
											2004-08-05 19:53:57 +00:00
										 |  |  | struct pa_mainloop_api* pa_glib_mainloop_get_api(struct pa_glib_mainloop *g); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-15 00:02:26 +00:00
										 |  |  | PA_C_DECL_END | 
					
						
							| 
									
										
										
										
											2004-08-06 23:07:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-05 19:53:57 +00:00
										 |  |  | #endif
 |