mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									98f41f1e70
								
							
						
					
					
						commit
						78f386ad45
					
				
					 19 changed files with 269 additions and 201 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
#include <stdio.h>
 | 
			
		||||
#include <assert.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -24,6 +25,8 @@ struct source* source_new(struct core *core, const char *name, const struct samp
 | 
			
		|||
    s->link_change_callback = NULL;
 | 
			
		||||
    s->userdata = NULL;
 | 
			
		||||
 | 
			
		||||
    fprintf(stderr, "source: created %u \"%s\"\n", s->index, s->name);
 | 
			
		||||
    
 | 
			
		||||
    return s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -40,6 +43,8 @@ void source_free(struct source *s) {
 | 
			
		|||
    
 | 
			
		||||
    idxset_remove_by_data(s->core->sources, s, NULL);
 | 
			
		||||
 | 
			
		||||
    fprintf(stderr, "source: freed %u \"%s\"\n", s->index, s->name);
 | 
			
		||||
 | 
			
		||||
    free(s->name);
 | 
			
		||||
    free(s);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue