Changeset 1162:d9b136a87245 in roaraudio for libroar/ctl.c
- Timestamp:
- 01/24/09 02:00:26 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/ctl.c
r798 r1162 35 35 #include "libroar.h" 36 36 37 int roar_get_clientid (struct roar_connection * con) { 38 struct roar_message mes; 39 40 memset(&mes, 0, sizeof(struct roar_message)); // make valgrind happy! 41 42 mes.cmd = ROAR_CMD_WHOAMI; 43 mes.datalen = 0; 44 45 if ( roar_req(con, &mes, NULL) == -1 ) 46 return -1; 47 48 if ( mes.cmd != ROAR_CMD_OK ) 49 return -1; 50 51 if ( mes.datalen != 1 ) 52 return -1; 53 54 return mes.data[0]; 55 } 56 37 57 int roar_server_oinfo (struct roar_connection * con, struct roar_stream * sa) { 38 58 struct roar_message mes;
Note: See TracChangeset
for help on using the changeset viewer.