Changeset 3952:5d9df496e1a3 in roaraudio for libroaross


Ignore:
Timestamp:
06/25/10 01:59:26 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added libroaross_open_vio()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3951 r3952  
    699699 
    700700 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = %i", pathname, flags, pointer->fh); 
     701 
     702 return pointer->fh; 
     703} 
     704 
     705// ------------------------------------- 
     706// VIO open function: 
     707// ------------------------------------- 
     708 
     709int libroaross_open_vio(struct handle ** handleret, struct roar_vio_calls ** vio, int flags) { 
     710 struct handle  * handle; 
     711 struct pointer * pointer; 
     712 
     713 _init(); 
     714 
     715 if ( vio == NULL ) 
     716  return -1; 
     717 
     718 if ( (handle = _open_handle(NULL)) == NULL ) { 
     719  return -1; 
     720 } 
     721 
     722 handle->type        = HT_VIO; 
     723 handle->sysio_flags = flags; 
     724 
     725 *vio = &(handle->stream_vio); 
     726 
     727 if ( handleret != NULL ) 
     728  *handleret = handle; 
     729 
     730 if ( (pointer = _open_pointer(handle)) == NULL ) { 
     731  _close_handle(handle); 
     732  return -1; 
     733 } 
    701734 
    702735 return pointer->fh; 
Note: See TracChangeset for help on using the changeset viewer.