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>
 | 
			
		||||
| 
						 | 
				
			
			@ -19,6 +20,8 @@ struct client *client_new(struct core *core, const char *protocol_name, char *na
 | 
			
		|||
 | 
			
		||||
    r = idxset_put(core->clients, c, &c->index);
 | 
			
		||||
    assert(c->index != IDXSET_INVALID && r >= 0);
 | 
			
		||||
 | 
			
		||||
    fprintf(stderr, "client: created %u \"%s\"\n", c->index, c->name);
 | 
			
		||||
    
 | 
			
		||||
    return c;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -27,6 +30,7 @@ void client_free(struct client *c) {
 | 
			
		|||
    assert(c && c->core);
 | 
			
		||||
 | 
			
		||||
    idxset_remove_by_data(c->core->clients, c, NULL);
 | 
			
		||||
    fprintf(stderr, "client: freed %u \"%s\"\n", c->index, c->name);
 | 
			
		||||
    free(c->name);
 | 
			
		||||
    free(c);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue