Changeset 2718:bba8be1f4d19 in roaraudio


Ignore:
Timestamp:
09/15/09 01:15:53 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added stubs for init and uninit of RDTCS

Location:
roard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roard/include/rdtcs.h

    r2717 r2718  
    2828#include <roaraudio.h> 
    2929 
     30#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     31 
     32int rdtcs_init  (void); 
     33int rdtcs_free  (void); 
     34 
     35int rdtcs_init_config  (void); 
     36 
     37#endif 
     38 
    3039#endif 
    3140 
  • roard/rdtcs.c

    r2717 r2718  
    2525#include "roard.h" 
    2626 
     27#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     28 
     29int rdtcs_init  (void) { 
     30 return 0; 
     31} 
     32 
     33int rdtcs_free  (void) { 
     34 return 0; 
     35} 
     36 
     37int rdtcs_init_config  (void) { 
     38 return 0; 
     39} 
     40 
     41#endif 
     42 
    2743//ll 
  • roard/roard.c

    r2681 r2718  
    900900#endif 
    901901 
     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 
    902909#ifdef ROAR_SUPPORT_LISTEN 
    903910 sock_addr = ROAR_DEFAULT_SOCK_GLOBAL; 
     
    13231330#endif 
    13241331 
     1332#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     1333 if ( rdtcs_init() == -1 ) { 
     1334  ROAR_ERR("Can not initialize RDTCS subsystem"); 
     1335 } 
     1336#endif 
     1337 
    13251338#ifdef ROAR_SUPPORT_LISTEN 
    13261339 if ( add_listen(sock_addr, port, sock_type, sock_user, sock_grp, sock_proto) != 0 ) { 
     
    15391552 light_free(); 
    15401553#endif 
     1554#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     1555 rdtcs_free(); 
     1556#endif 
    15411557 
    15421558#ifdef SUPPORT_PIDFILE 
Note: See TracChangeset for help on using the changeset viewer.