Changeset 2718:bba8be1f4d19 in roaraudio
- Timestamp:
- 09/15/09 01:15:53 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/rdtcs.h
r2717 r2718 28 28 #include <roaraudio.h> 29 29 30 #ifndef ROAR_WITHOUT_DCOMP_RDTCS 31 32 int rdtcs_init (void); 33 int rdtcs_free (void); 34 35 int rdtcs_init_config (void); 36 37 #endif 38 30 39 #endif 31 40 -
roard/rdtcs.c
r2717 r2718 25 25 #include "roard.h" 26 26 27 #ifndef ROAR_WITHOUT_DCOMP_RDTCS 28 29 int rdtcs_init (void) { 30 return 0; 31 } 32 33 int rdtcs_free (void) { 34 return 0; 35 } 36 37 int rdtcs_init_config (void) { 38 return 0; 39 } 40 41 #endif 42 27 43 //ll -
roard/roard.c
r2681 r2718 900 900 #endif 901 901 902 #ifndef ROAR_WITHOUT_DCOMP_RDTCS 903 if ( rdtcs_init_config() == -1 ) { 904 ROAR_ERR("Can not init RDTCS config!"); 905 return 1; 906 } 907 #endif 908 902 909 #ifdef ROAR_SUPPORT_LISTEN 903 910 sock_addr = ROAR_DEFAULT_SOCK_GLOBAL; … … 1323 1330 #endif 1324 1331 1332 #ifndef ROAR_WITHOUT_DCOMP_RDTCS 1333 if ( rdtcs_init() == -1 ) { 1334 ROAR_ERR("Can not initialize RDTCS subsystem"); 1335 } 1336 #endif 1337 1325 1338 #ifdef ROAR_SUPPORT_LISTEN 1326 1339 if ( add_listen(sock_addr, port, sock_type, sock_user, sock_grp, sock_proto) != 0 ) { … … 1539 1552 light_free(); 1540 1553 #endif 1554 #ifndef ROAR_WITHOUT_DCOMP_RDTCS 1555 rdtcs_free(); 1556 #endif 1541 1557 1542 1558 #ifdef SUPPORT_PIDFILE
Note: See TracChangeset
for help on using the changeset viewer.