Changeset 2809:8d51fb4545cb in roaraudio
- Timestamp:
- 09/29/09 17:55:58 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/basic.c
r2567 r2809 215 215 216 216 int roar_get_connection_fh (struct roar_connection * con) { 217 roar_debug_warn_sysio("roar_get_connection_fh", "roar_get_connection_vio", NULL); 218 217 219 if ( con == NULL ) 218 220 return -1; … … 225 227 return -1; 226 228 227 return roar_vio_open_fh_socket(vio, roar_get_connection_fh(con));229 return roar_vio_open_fh_socket(vio, con->__fh); 228 230 } 229 231 230 232 int roar_disconnect (struct roar_connection * con) { 233 struct roar_vio_calls vio; 231 234 struct roar_message m; 232 235 … … 238 241 roar_req(con, &m, NULL); 239 242 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 } 243 246 244 247 roar_connect_fh(con, -2); … … 291 294 struct roar_vio_calls vio; 292 295 293 if ( roar_ vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 )296 if ( roar_get_connection_vio(con, &vio) == -1 ) 294 297 return -1; 295 298 … … 331 334 struct roar_vio_calls vio; 332 335 333 if ( roar_ vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 )336 if ( roar_get_connection_vio(con, &vio) == -1 ) 334 337 return -1; 335 338 … … 418 421 struct roar_vio_calls vio; 419 422 420 if ( roar_ vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 )423 if ( roar_get_connection_vio(con, &vio) == -1 ) 421 424 return -1; 422 425 -
libroar/simple.c
r2697 r2809 396 396 struct roar_connection con; 397 397 398 roar_debug_warn_sysio("roar_simple_get_standby", NULL, NULL);398 roar_debug_warn_sysio("roar_simple_get_standby", "roar_get_standby", NULL); 399 399 400 400 if ( roar_connect_fh(&con, fh) == -1 )
Note: See TracChangeset
for help on using the changeset viewer.