Changeset 4614:3b1ab4d465e8 in roaraudio for libroar/ctl.c


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
  • libroar/ctl.c

    r4385 r4614  
    5656} 
    5757 
    58 int roar_server_oinfo   (struct roar_connection * con, struct roar_stream * sa) { 
     58int roar_server_oinfo   (struct roar_connection * con, struct roar_stream * s) { 
     59 return roar_server_oinfo2(con, s, -1); 
     60} 
     61 
     62int roar_server_oinfo2  (struct roar_connection * con, struct roar_stream * s, int dir) { 
    5963 struct roar_message mes; 
    6064 
     
    6266 
    6367 mes.cmd     = ROAR_CMD_SERVER_OINFO; 
    64  mes.datalen = 0; 
     68 
     69 if ( dir == -1 ) { 
     70  mes.datalen = 0; 
     71 } else { 
     72  mes.datalen = 2; 
     73  mes.data[0] = 0; 
     74  mes.data[1] = dir; 
     75 } 
    6576 
    6677 if ( roar_req(con, &mes, NULL) == -1 ) 
     
    7081  return -1; 
    7182 
    72  if ( roar_stream_m2s(sa, &mes) == -1 ) 
     83 if ( roar_stream_m2s(s, &mes) == -1 ) 
    7384  return -1; 
    7485 
Note: See TracChangeset for help on using the changeset viewer.