mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: Make pa_bt_audio_state_from_string() private.
This commit is contained in:
		
							parent
							
								
									51c88fb8b9
								
							
						
					
					
						commit
						7b8681de07
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -78,7 +78,7 @@ static pa_dbus_pending* send_and_add_to_pending(pa_bluetooth_discovery *y, DBusM
 | 
				
			||||||
static void found_adapter(pa_bluetooth_discovery *y, const char *path);
 | 
					static void found_adapter(pa_bluetooth_discovery *y, const char *path);
 | 
				
			||||||
static pa_bluetooth_device *found_device(pa_bluetooth_discovery *y, const char* path);
 | 
					static pa_bluetooth_device *found_device(pa_bluetooth_discovery *y, const char* path);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pa_bt_audio_state_t pa_bt_audio_state_from_string(const char* value) {
 | 
					static pa_bt_audio_state_t audio_state_from_string(const char* value) {
 | 
				
			||||||
    pa_assert(value);
 | 
					    pa_assert(value);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (pa_streq(value, "disconnected"))
 | 
					    if (pa_streq(value, "disconnected"))
 | 
				
			||||||
| 
						 | 
					@ -529,7 +529,7 @@ static int parse_audio_property(pa_bluetooth_device *d, const char *interface, D
 | 
				
			||||||
            dbus_message_iter_get_basic(&variant_i, &value);
 | 
					            dbus_message_iter_get_basic(&variant_i, &value);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (pa_streq(key, "State")) {
 | 
					            if (pa_streq(key, "State")) {
 | 
				
			||||||
                pa_bt_audio_state_t state = pa_bt_audio_state_from_string(value);
 | 
					                pa_bt_audio_state_t state = audio_state_from_string(value);
 | 
				
			||||||
                pa_bluetooth_transport_state_t old_state;
 | 
					                pa_bluetooth_transport_state_t old_state;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                pa_log_debug("Device %s interface %s property 'State' changed to value '%s'", d->path, interface, value);
 | 
					                pa_log_debug("Device %s interface %s property 'State' changed to value '%s'", d->path, interface, value);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -161,7 +161,6 @@ const char* pa_bluetooth_get_form_factor(uint32_t class);
 | 
				
			||||||
char *pa_bluetooth_cleanup_name(const char *name);
 | 
					char *pa_bluetooth_cleanup_name(const char *name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pa_bool_t pa_bluetooth_uuid_has(pa_bluetooth_uuid *uuids, const char *uuid);
 | 
					pa_bool_t pa_bluetooth_uuid_has(pa_bluetooth_uuid *uuids, const char *uuid);
 | 
				
			||||||
pa_bt_audio_state_t pa_bt_audio_state_from_string(const char* value);
 | 
					 | 
				
			||||||
const char *pa_bt_profile_to_string(enum profile profile);
 | 
					const char *pa_bt_profile_to_string(enum profile profile);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue