Changeset 1660:99bfd21f00ef in roaraudio for libroaresd/esdbasic.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
  • libroaresd/esdbasic.c

    r705 r1660  
    4545int esd_open_sound( const char *host ) { 
    4646 struct roar_connection con; 
     47 int fh; 
    4748 
    4849 if ( roar_simple_connect(&con, (char*) host, NULL) == -1 ) { 
     
    5152 } 
    5253 
    53  return con.fh; 
     54 if ( (fh = roar_get_connection_fh(&con)) == -1 ) { 
     55  roar_disconnect(&con); 
     56  return -1; 
     57 } 
     58 
     59 return fh; 
    5460} 
    5561 
     
    7985 m.datalen = 0; 
    8086 
    81  con.fh = esd; 
     87 roar_connect_fh(&con, esd); 
    8288 
    8389 gettimeofday(&try, NULL); 
Note: See TracChangeset for help on using the changeset viewer.