Changeset 578:51e28ac3912e in roaraudio


Ignore:
Timestamp:
08/19/08 14:38:05 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added call roar_terminate() to libroar

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/ctl.h

    r27 r578  
    1212int roar_set_standby   (struct roar_connection * con, int state); 
    1313 
    14 int roar_exit   (struct roar_connection * con); 
     14int roar_exit           (struct roar_connection * con); 
     15int roar_terminate      (struct roar_connection * con, int terminate); 
    1516int roar_server_oinfo   (struct roar_connection * con, struct roar_stream * s); 
    1617 
  • libroar/ctl.c

    r438 r578  
    6060 
    6161int roar_exit   (struct roar_connection * con) { 
     62 return roar_terminate(con, 0); 
     63} 
     64 
     65int roar_terminate (struct roar_connection * con, int terminate) { 
    6266 struct roar_message mes; 
    6367 
    6468 memset(&mes, 0, sizeof(struct roar_message)); // make valgrind happy! 
    6569 
    66  mes.cmd = ROAR_CMD_EXIT; 
    67  mes.datalen = 0; 
     70 mes.cmd     = ROAR_CMD_EXIT; 
     71 mes.datalen = 1; 
     72 mes.data[0] = terminate; 
     73 
    6874 if ( roar_req(con, &mes, NULL) == -1 ) 
    6975  return -1; 
Note: See TracChangeset for help on using the changeset viewer.