mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-10-29 05:40:23 -04:00 
			
		
		
		
	bluetooth: Create PA_BLUETOOTH_HOOK_ADAPTER_UUIDS_CHANGED
This hook will be fired any time the UUIDs property on the adapter object changes. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/593>
This commit is contained in:
		
							parent
							
								
									a84914f7b3
								
							
						
					
					
						commit
						cd0a8a5a0c
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1676,6 +1676,7 @@ static void parse_adapter_properties(pa_bluetooth_adapter *a, DBusMessageIter *i | |||
|                     pa_log_debug("%s: %s", key, value); | ||||
|                     dbus_message_iter_next(&ai); | ||||
|                 } | ||||
|                 pa_hook_fire(pa_bluetooth_discovery_hook(a->discovery, PA_BLUETOOTH_HOOK_ADAPTER_UUIDS_CHANGED), a); | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
|  | @ -64,6 +64,7 @@ typedef struct pa_bluetooth_discovery pa_bluetooth_discovery; | |||
| typedef struct pa_bluetooth_backend pa_bluetooth_backend; | ||||
| 
 | ||||
| typedef enum pa_bluetooth_hook { | ||||
|     PA_BLUETOOTH_HOOK_ADAPTER_UUIDS_CHANGED,            /* Call data: pa_bluetooth_adapter */ | ||||
|     PA_BLUETOOTH_HOOK_DEVICE_CONNECTION_CHANGED,        /* Call data: pa_bluetooth_device */ | ||||
|     PA_BLUETOOTH_HOOK_DEVICE_UNLINK,                    /* Call data: pa_bluetooth_device */ | ||||
|     PA_BLUETOOTH_HOOK_DEVICE_BATTERY_LEVEL_CHANGED,     /* Call data: pa_bluetooth_device */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 João Paulo Rechi Vita
						João Paulo Rechi Vita