mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	define new hooks: hook_source_output_new, hook_source_disconnect
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1247 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									a09a49e41b
								
							
						
					
					
						commit
						8f91b1f4c4
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -94,6 +94,8 @@ pa_core* pa_core_new(pa_mainloop_api *m) {
 | 
			
		|||
 | 
			
		||||
    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 @@ void pa_core_free(pa_core *c) {
 | 
			
		|||
 | 
			
		||||
    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);    
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -81,8 +81,11 @@ struct pa_core {
 | 
			
		|||
    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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue