Changeset 1660:99bfd21f00ef in roaraudio for libroar/basic.c


Ignore:
Timestamp:
05/08/09 16:56:40 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

changed name of fh in con struct to fh, this should all apps requiring the private member to fail to build, added function to get fh, change code to use them both everythere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r1475 r1660  
    187187 memset(con, 0, sizeof(struct roar_connection)); 
    188188 
    189  con->fh = fh; 
     189 con->__fh = fh; 
    190190 
    191191 roar_errno = ROAR_ERROR_NONE; 
    192192 return 0; 
     193} 
     194 
     195int roar_get_connection_fh (struct roar_connection * con) { 
     196 return con->__fh; 
    193197} 
    194198 
     
    204208 
    205209#ifdef ROAR_HAVE_IO_POSIX 
    206  close(con->fh); 
    207 #endif 
    208  
    209  con->fh = -1; 
     210 close(roar_get_connection_fh(con)); 
     211#endif 
     212 
     213 roar_connect_fh(con, -2); 
    210214 
    211215 roar_errno = ROAR_ERROR_NONE; 
     
    256260 struct roar_vio_calls vio; 
    257261 
    258  if ( roar_vio_open_fh_socket(&vio, con->fh) == -1 ) 
     262 if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 
    259263  return -1; 
    260264 
     
    298302 struct roar_vio_calls vio; 
    299303 
    300  if ( roar_vio_open_fh_socket(&vio, con->fh) == -1 ) 
     304 if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 
    301305  return -1; 
    302306 
     
    385389 struct roar_vio_calls vio; 
    386390 
    387  if ( roar_vio_open_fh_socket(&vio, con->fh) == -1 ) 
     391 if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 
    388392  return -1; 
    389393 
Note: See TracChangeset for help on using the changeset viewer.