[pulseaudio-commits] r1247 - in /trunk/src/pulsecore: core.c core.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Aug 13 12:52:45 PDT 2006


Author: lennart
Date: Sun Aug 13 21:52:43 2006
New Revision: 1247

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1247&root=pulseaudio&view=rev
Log:
define new hooks: hook_source_output_new, hook_source_disconnect

Modified:
    trunk/src/pulsecore/core.c
    trunk/src/pulsecore/core.h

Modified: trunk/src/pulsecore/core.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core.c?rev=1247&root=pulseaudio&r1=1246&r2=1247&view=diff
==============================================================================
--- trunk/src/pulsecore/core.c (original)
+++ trunk/src/pulsecore/core.c Sun Aug 13 21:52:43 2006
@@ -94,6 +94,8 @@
 
     pa_hook_init(&c->hook_sink_input_new, c);
     pa_hook_init(&c->hook_sink_disconnect, c);
+    pa_hook_init(&c->hook_source_output_new, c);
+    pa_hook_init(&c->hook_source_disconnect, c);
 
     pa_property_init(c);
 
@@ -143,6 +145,8 @@
 
     pa_hook_free(&c->hook_sink_input_new);
     pa_hook_free(&c->hook_sink_disconnect);
+    pa_hook_free(&c->hook_source_output_new);
+    pa_hook_free(&c->hook_source_disconnect);
     
     pa_xfree(c);    
 }

Modified: trunk/src/pulsecore/core.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core.h?rev=1247&root=pulseaudio&r1=1246&r2=1247&view=diff
==============================================================================
--- trunk/src/pulsecore/core.h (original)
+++ trunk/src/pulsecore/core.h Sun Aug 13 21:52:43 2006
@@ -81,8 +81,11 @@
     int is_system_instance;
 
     /* hooks */
-    pa_hook hook_sink_input_new,
-        hook_sink_disconnect;
+    pa_hook
+        hook_sink_input_new,
+        hook_sink_disconnect,
+        hook_source_output_new,
+        hook_source_disconnect;
 };
 
 pa_core* pa_core_new(pa_mainloop_api *m);




More information about the pulseaudio-commits mailing list