mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	proplist: pa_proplist_gets: constify proplist pointer
This commit is contained in:
		
							parent
							
								
									cc063264e6
								
							
						
					
					
						commit
						58c3f9b671
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -272,7 +272,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
 | 
				
			||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const char *pa_proplist_gets(pa_proplist *p, const char *key) {
 | 
					const char *pa_proplist_gets(const pa_proplist *p, const char *key) {
 | 
				
			||||||
    struct property *prop;
 | 
					    struct property *prop;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_assert(p);
 | 
					    pa_assert(p);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -311,7 +311,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
 | 
				
			||||||
 * the data is not valid UTF-8. Will return a NUL-terminated string in
 | 
					 * the data is not valid UTF-8. Will return a NUL-terminated string in
 | 
				
			||||||
 * an internally allocated buffer. The caller should make a copy of
 | 
					 * an internally allocated buffer. The caller should make a copy of
 | 
				
			||||||
 * the data before accessing the property list again. \since 0.9.11 */
 | 
					 * the data before accessing the property list again. \since 0.9.11 */
 | 
				
			||||||
const char *pa_proplist_gets(pa_proplist *p, const char *key);
 | 
					const char *pa_proplist_gets(const pa_proplist *p, const char *key);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** Store the value for the specified key in \a data. Will store a
 | 
					/** Store the value for the specified key in \a data. Will store a
 | 
				
			||||||
 * NUL-terminated string for string entries. The \a data pointer returned will
 | 
					 * NUL-terminated string for string entries. The \a data pointer returned will
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue