Changeset 4007:fcdcc803bc06 in roaraudio


Ignore:
Timestamp:
07/01/10 15:05:45 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

get libroaross working again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3953 r4007  
    533533 
    534534static struct devices * _get_device (const char * pathname) { 
    535  struct devices * ptr; 
    536535 size_t len; 
    537536 int i; 
     537 
     538 ROAR_DBG("_get_device(pathname='%s') = ?", pathname); 
    538539 
    539540 for (i = 0; _device_list[i].prefix != NULL; i++) { 
     
    546547  } 
    547548  if ( !strncmp(pathname, _device_list[i].prefix, len) ) { 
    548    ptr = &(_device_list[i]); 
    549   } 
    550  } 
    551  
     549   return &(_device_list[i]); 
     550  } 
     551 } 
     552 
     553 ROAR_DBG("_get_device(pathname='%s') = NULL", pathname); 
    552554 return NULL; 
    553555} 
     
    584586 } 
    585587 
     588 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = ?", pathname, flags); 
     589 
    586590 if ( (ptr = _get_device(pathname)) == NULL ) 
    587591  return -2; 
     592 
     593 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = ?", pathname, flags); 
    588594 
    589595 if ( ptr->type == HT_STATIC || ptr->type == HT_VIO ) { // non-session handles 
Note: See TracChangeset for help on using the changeset viewer.