Changeset 578:51e28ac3912e in roaraudio for libroar
- Timestamp:
- 08/19/08 14:38:05 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/ctl.c
r438 r578 60 60 61 61 int roar_exit (struct roar_connection * con) { 62 return roar_terminate(con, 0); 63 } 64 65 int roar_terminate (struct roar_connection * con, int terminate) { 62 66 struct roar_message mes; 63 67 64 68 memset(&mes, 0, sizeof(struct roar_message)); // make valgrind happy! 65 69 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 68 74 if ( roar_req(con, &mes, NULL) == -1 ) 69 75 return -1;
Note: See TracChangeset
for help on using the changeset viewer.