Changeset 5832:f0b38d5ea016 in roaraudio for libroar/enumdev.c


Ignore:
Timestamp:
01/06/13 16:15:56 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_libroar_get_path_static() and make use of it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/enumdev.c

    r5823 r5832  
    145145 
    146146#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER) 
    147   if ( (i = readlink("/etc/roarserver", buf, sizeof(buf)-1)) != -1 ) { 
     147  if ( (i = readlink(roar_libroar_get_path_static("sysconf-roarserver"), buf, sizeof(buf)-1)) != -1 ) { 
    148148    buf[i] = 0; 
    149149    _add(buf); 
     
    230230  {ROAR_PROC_NET_ARP, NULL, 1}, 
    231231#endif 
    232 //  {"/etc/hosts", NULL, 0}, 
     232//  {roar_libroar_get_path_static("sysconf-hosts"), NULL, 0}, 
    233233  {NULL, NULL, 0} 
    234234 }; 
Note: See TracChangeset for help on using the changeset viewer.