Changeset 4614:3b1ab4d465e8 in roaraudio for roarclients


Ignore:
Timestamp:
11/21/10 16:51:56 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Support dir parameter in OINFO command (Closes: #31)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r4603 r4614  
    116116        "  serverinfo              - Gets general information about the server\n" 
    117117        "  serveroinfo             - Gets Information about server output\n" 
     118        "  serveroinfo2 DIR        - Gets Information about server output for stream direction dir\n" 
    118119        "  serverstandards         - Gets list of server supported standards\n" 
    119120        "  listclients             - Gets Information about clients\n" 
     
    231232#undef _pm 
    232233 
    233 void server_oinfo (struct roar_connection * con) { 
     234void server_oinfo (struct roar_connection * con, int dir) { 
    234235 struct roar_stream s; 
    235236 
    236  if ( roar_server_oinfo(con, &s) == -1 ) { 
     237 if ( roar_server_oinfo2(con, &s, dir) == -1 ) { 
    237238  fprintf(stderr, "Error: can not get server output info\n"); 
    238239  return; 
     
    11451146   server_info(&con); 
    11461147  } 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   } 
    11481156  } else if ( !strcmp(k, "serverstandards") ) { 
    11491157   server_standards(&con); 
     
    11531161   list_streams(&con); 
    11541162  } else if ( !strcmp(k, "allinfo") ) { 
    1155    server_oinfo(&con); 
     1163   server_oinfo(&con, -1); 
    11561164   printf("\n"); 
    11571165   list_clients(&con); 
Note: See TracChangeset for help on using the changeset viewer.