Changeset 1660:99bfd21f00ef in roaraudio for libroar/stream.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/stream.c

    r1475 r1660  
    203203int roar_stream_passfh  (struct roar_connection * con, struct roar_stream * s, int fh) { 
    204204 struct roar_message m; 
     205 int confh; 
    205206 
    206207 m.cmd     = ROAR_CMD_PASSFH; 
     
    210211 
    211212 ROAR_DBG("roar_stream_passfh(con={.fh=%i,...}, s={.id=%i,...}, fh=%i) = ?", con->fh, s->id, fh); 
     213 
     214 if ( (confh = roar_get_connection_fh(con)) == -1 ) 
     215  return -1; 
    212216 
    213217 if ( roar_send_message(con, &m, NULL) == -1 ) { 
     
    218222 ROAR_DBG("roar_stream_passfh(*): msg send"); 
    219223 
    220  if ( roar_socket_send_fh(con->fh, fh, NULL, 0) == -1 ) 
     224 if ( roar_socket_send_fh(confh, fh, NULL, 0) == -1 ) 
    221225  return -1; 
    222226 
Note: See TracChangeset for help on using the changeset viewer.