mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	* fix include file names in installed header files
* add browsing API * add new tool pabrowse * add typeid subsystem * bump API version * split off random.c * add an identification cookie git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@320 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									9a01cf44f0
								
							
						
					
					
						commit
						e02be6c15b
					
				
					 58 changed files with 971 additions and 169 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,8 @@
 | 
			
		|||
/* Don't allow more than this many concurrent connections */
 | 
			
		||||
#define MAX_CONNECTIONS 10
 | 
			
		||||
 | 
			
		||||
#define PA_TYPEID_SIMPLE PA_TYPEID_MAKE('S', 'M', 'P', 'L')
 | 
			
		||||
 | 
			
		||||
struct connection {
 | 
			
		||||
    struct pa_protocol_simple *protocol;
 | 
			
		||||
    struct pa_iochannel *io;
 | 
			
		||||
| 
						 | 
				
			
			@ -308,7 +310,7 @@ static void on_connection(struct pa_socket_server*s, struct pa_iochannel *io, vo
 | 
			
		|||
    c->playback.fragment_size = 0;
 | 
			
		||||
    
 | 
			
		||||
    pa_iochannel_socket_peer_to_string(io, cname, sizeof(cname));
 | 
			
		||||
    c->client = pa_client_new(p->core, "SIMPLE", cname);
 | 
			
		||||
    c->client = pa_client_new(p->core, PA_TYPEID_SIMPLE, cname);
 | 
			
		||||
    assert(c->client);
 | 
			
		||||
    c->client->owner = p->module;
 | 
			
		||||
    c->client->kill = client_kill_cb;
 | 
			
		||||
| 
						 | 
				
			
			@ -323,7 +325,7 @@ static void on_connection(struct pa_socket_server*s, struct pa_iochannel *io, vo
 | 
			
		|||
            goto fail;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!(c->sink_input = pa_sink_input_new(sink, c->client->name, &p->sample_spec, 0, -1))) {
 | 
			
		||||
        if (!(c->sink_input = pa_sink_input_new(sink, PA_TYPEID_SIMPLE, c->client->name, &p->sample_spec, 0, -1))) {
 | 
			
		||||
            pa_log(__FILE__": Failed to create sink input.\n");
 | 
			
		||||
            goto fail;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			@ -353,7 +355,7 @@ static void on_connection(struct pa_socket_server*s, struct pa_iochannel *io, vo
 | 
			
		|||
            goto fail;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        c->source_output = pa_source_output_new(source, c->client->name, &p->sample_spec, -1);
 | 
			
		||||
        c->source_output = pa_source_output_new(source, PA_TYPEID_SIMPLE, c->client->name, &p->sample_spec, -1);
 | 
			
		||||
        if (!c->source_output) {
 | 
			
		||||
            pa_log(__FILE__": Failed to create source output.\n");
 | 
			
		||||
            goto fail;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue