Changeset 78:997d49ae275a in roaraudio for roard/clients.c


Ignore:
Timestamp:
07/12/08 18:06:43 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added basic support to connect to streams of existing clients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r71 r78  
    293293} 
    294294 
     295int client_stream_set_fh (int client, int stream, int fh) { 
     296 int i; 
     297 
     298 if ( g_clients[client] == NULL ) 
     299  return -1; 
     300 
     301 for (i = 0; i < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; i++) { 
     302  if ( g_clients[client]->streams[i] == stream ) { 
     303   streams_set_fh(stream, fh); 
     304   return 0; 
     305  } 
     306 } 
     307 
     308 return -1; 
     309} 
     310 
    295311int client_stream_add    (int client, int stream) { 
    296312 int i; 
Note: See TracChangeset for help on using the changeset viewer.