Changeset 4614:3b1ab4d465e8 in roaraudio for roarclients
- Timestamp:
- 11/21/10 16:51:56 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarctl.c
r4603 r4614 116 116 " serverinfo - Gets general information about the server\n" 117 117 " serveroinfo - Gets Information about server output\n" 118 " serveroinfo2 DIR - Gets Information about server output for stream direction dir\n" 118 119 " serverstandards - Gets list of server supported standards\n" 119 120 " listclients - Gets Information about clients\n" … … 231 232 #undef _pm 232 233 233 void server_oinfo (struct roar_connection * con ) {234 void server_oinfo (struct roar_connection * con, int dir) { 234 235 struct roar_stream s; 235 236 236 if ( roar_server_oinfo (con, &s) == -1 ) {237 if ( roar_server_oinfo2(con, &s, dir) == -1 ) { 237 238 fprintf(stderr, "Error: can not get server output info\n"); 238 239 return; … … 1145 1146 server_info(&con); 1146 1147 } else if ( !strcmp(k, "serveroinfo") ) { 1147 server_oinfo(&con); 1148 server_oinfo(&con, -1); 1149 } else if ( !strcmp(k, "serveroinfo2") ) { 1150 t = roar_str2dir(argv[++i]); 1151 if ( t == -1 ) { 1152 fprintf(stderr, "Error: unknown stream direction: %s\n", argv[i]); 1153 } else { 1154 server_oinfo(&con, t); 1155 } 1148 1156 } else if ( !strcmp(k, "serverstandards") ) { 1149 1157 server_standards(&con); … … 1153 1161 list_streams(&con); 1154 1162 } else if ( !strcmp(k, "allinfo") ) { 1155 server_oinfo(&con );1163 server_oinfo(&con, -1); 1156 1164 printf("\n"); 1157 1165 list_clients(&con);
Note: See TracChangeset
for help on using the changeset viewer.