Changeset 767:7205e1dce16c in roaraudio


Ignore:
Timestamp:
09/07/08 03:46:09 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added client_stream_move()

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r755 r767  
    474474} 
    475475 
     476int client_stream_move   (int client, int stream) { 
     477 int old_client = streams_get_client(stream); 
     478 
     479 if ( old_client != -1 ) 
     480  if ( client_stream_delete(old_client, stream) == -1 ) 
     481   return -1; 
     482 
     483 return client_stream_add(client, stream);  
     484} 
     485 
    476486//ll 
  • roard/include/client.h

    r755 r767  
    7676int client_stream_add    (int client, int stream); 
    7777int client_stream_delete (int client, int stream); 
     78int client_stream_move   (int client, int stream); 
    7879 
    7980#endif 
Note: See TracChangeset for help on using the changeset viewer.