Changeset 78:997d49ae275a in roaraudio
- Timestamp:
- 07/12/08 18:06:43 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/clients.c
r71 r78 293 293 } 294 294 295 int 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 295 311 int client_stream_add (int client, int stream) { 296 312 int i; -
roard/include/client.h
r0 r78 48 48 49 49 int client_stream_exec (int client, int stream); 50 int client_stream_set_fh (int client, int stream, int fh); 50 51 int client_stream_add (int client, int stream); 51 52 int client_stream_delete (int client, int stream); -
roard/req.c
r77 r78 119 119 return -1; 120 120 121 close(fh); 121 if ( client_stream_set_fh(client, mes->stream, fh) == -1 ) { 122 close(fh); 123 return 1; 124 } 125 126 return 0; 127 128 mes->datalen = 0; 129 mes->cmd = ROAR_CMD_OK; 122 130 } 123 131
Note: See TracChangeset
for help on using the changeset viewer.