Changeset 578:51e28ac3912e in roaraudio for libroar/ctl.c


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

added call roar_terminate() to libroar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.