mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	dbusiface-core: New function: pa_dbusiface_core_get_card_path().
This commit is contained in:
		
							parent
							
								
									90c73db449
								
							
						
					
					
						commit
						1e65d8d35b
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2034,6 +2034,13 @@ void pa_dbusiface_core_free(pa_dbusiface_core *c) {
 | 
			
		|||
    pa_xfree(c);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char *pa_dbusiface_core_get_card_path(pa_dbusiface_core *c, const pa_card *card) {
 | 
			
		||||
    pa_assert(c);
 | 
			
		||||
    pa_assert(card);
 | 
			
		||||
 | 
			
		||||
    return pa_dbusiface_card_get_path(pa_hashmap_get(c->cards, PA_UINT32_TO_PTR(card->index)));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char *pa_dbusiface_core_get_sink_path(pa_dbusiface_core *c, const pa_sink *sink) {
 | 
			
		||||
    pa_assert(c);
 | 
			
		||||
    pa_assert(sink);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,6 +35,7 @@ typedef struct pa_dbusiface_core pa_dbusiface_core;
 | 
			
		|||
pa_dbusiface_core *pa_dbusiface_core_new(pa_core *core);
 | 
			
		||||
void pa_dbusiface_core_free(pa_dbusiface_core *c);
 | 
			
		||||
 | 
			
		||||
const char *pa_dbusiface_core_get_card_path(pa_dbusiface_core *c, const pa_card *card);
 | 
			
		||||
const char *pa_dbusiface_core_get_sink_path(pa_dbusiface_core *c, const pa_sink *sink);
 | 
			
		||||
const char *pa_dbusiface_core_get_source_path(pa_dbusiface_core *c, const pa_source *source);
 | 
			
		||||
const char *pa_dbusiface_core_get_module_path(pa_dbusiface_core *c, const pa_module *module);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue