mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	device-manager: Change the prefer/defer options to a single 'reorder' command.
We put in the devices from the wire into a hashmap and then add all like type device in the database and then order them based on priority (with the ones specified on the wire always being in that order at the top of the list.
This commit is contained in:
		
							parent
							
								
									8977abdc84
								
							
						
					
					
						commit
						f9b2d6500b
					
				
					 4 changed files with 167 additions and 149 deletions
				
			
		| 
						 | 
				
			
			@ -97,18 +97,10 @@ pa_operation *pa_ext_device_manager_enable_role_device_priority_routing(
 | 
			
		|||
        void *userdata);
 | 
			
		||||
 | 
			
		||||
/** Prefer a given device in the priority list. \since 0.9.19 */
 | 
			
		||||
pa_operation *pa_ext_device_manager_prefer_device(
 | 
			
		||||
pa_operation *pa_ext_device_manager_reorder_devices_for_role(
 | 
			
		||||
        pa_context *c,
 | 
			
		||||
        const char* role,
 | 
			
		||||
        const char* device,
 | 
			
		||||
        pa_context_success_cb_t cb,
 | 
			
		||||
        void *userdata);
 | 
			
		||||
 | 
			
		||||
/** Defer a given device in the priority list. \since 0.9.19 */
 | 
			
		||||
pa_operation *pa_ext_device_manager_defer_device(
 | 
			
		||||
        pa_context *c,
 | 
			
		||||
        const char* role,
 | 
			
		||||
        const char* device,
 | 
			
		||||
        const char** devices,
 | 
			
		||||
        pa_context_success_cb_t cb,
 | 
			
		||||
        void *userdata);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue