]> code.delx.au - pulseaudio/blobdiff - polyp/core.h
add support for automatic termination of the daemon after the last client quit
[pulseaudio] / polyp / core.h
index ffcd018bc2219ccdae1b26a49100f870aed7a7d2..513d8172972933275a90cbacf812c7bddbd7c0f4 100644 (file)
@@ -48,9 +48,15 @@ struct pa_core {
     struct pa_memblock_stat *memblock_stat;
 
     int disallow_module_loading;
+    int quit_after_last_client_time;
+
+    struct pa_time_event *quit_event;
+
 };
 
 struct pa_core* pa_core_new(struct pa_mainloop_api *m);
 void pa_core_free(struct pa_core*c);
 
+void pa_core_check_quit(struct pa_core *c);
+
 #endif