Changeset 2809:8d51fb4545cb in roaraudio


Ignore:
Timestamp:
09/29/09 17:55:58 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

sysio -> vio api, added warnings

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r2567 r2809  
    215215 
    216216int roar_get_connection_fh (struct roar_connection * con) { 
     217 roar_debug_warn_sysio("roar_get_connection_fh", "roar_get_connection_vio", NULL); 
     218 
    217219 if ( con == NULL ) 
    218220  return -1; 
     
    225227  return -1; 
    226228 
    227  return roar_vio_open_fh_socket(vio, roar_get_connection_fh(con)); 
     229 return roar_vio_open_fh_socket(vio, con->__fh); 
    228230} 
    229231 
    230232int roar_disconnect (struct roar_connection * con) { 
     233 struct roar_vio_calls vio; 
    231234 struct roar_message m; 
    232235 
     
    238241 roar_req(con, &m, NULL); 
    239242 
    240 #ifdef ROAR_HAVE_IO_POSIX 
    241  close(roar_get_connection_fh(con)); 
    242 #endif 
     243 if ( roar_get_connection_vio(con, &vio) != -1 ) { 
     244  roar_vio_close(&vio); 
     245 } 
    243246 
    244247 roar_connect_fh(con, -2); 
     
    291294 struct roar_vio_calls vio; 
    292295 
    293  if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 
     296 if ( roar_get_connection_vio(con, &vio) == -1 ) 
    294297  return -1; 
    295298 
     
    331334 struct roar_vio_calls vio; 
    332335 
    333  if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 
     336 if ( roar_get_connection_vio(con, &vio) == -1 ) 
    334337  return -1; 
    335338 
     
    418421 struct roar_vio_calls vio; 
    419422 
    420  if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 
     423 if ( roar_get_connection_vio(con, &vio) == -1 ) 
    421424  return -1; 
    422425 
  • libroar/simple.c

    r2697 r2809  
    396396 struct roar_connection con; 
    397397 
    398  roar_debug_warn_sysio("roar_simple_get_standby", NULL, NULL); 
     398 roar_debug_warn_sysio("roar_simple_get_standby", "roar_get_standby", NULL); 
    399399 
    400400 if ( roar_connect_fh(&con, fh) == -1 ) 
Note: See TracChangeset for help on using the changeset viewer.