Changeset 1660:99bfd21f00ef in roaraudio for libroaresd


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

Location:
libroaresd
Files:
2 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); 
  • libroaresd/esdctl.c

    r705 r1660  
    5454 struct roar_connection con; 
    5555 
    56  con.fh = esd; 
     56 roar_connect_fh(&con, esd); 
    5757 
    5858 return roar_set_standby(&con, ROAR_STANDBY_ACTIVE); 
     
    6262 struct roar_connection con; 
    6363 
    64  con.fh = esd; 
     64 roar_connect_fh(&con, esd); 
    6565 
    6666 return roar_set_standby(&con, ROAR_STANDBY_INACTIVE); 
     
    148148 r->version = 0; // seems to be static 
    149149 
    150  con.fh    = esd; 
     150 roar_connect_fh(&con, esd); 
    151151 m.cmd     = ROAR_CMD_SERVER_OINFO; 
    152152 m.datalen = 0; 
     
    201201 esd_player_info_t * new_player, * cur = NULL; // = NULL to avoid gcc warning 
    202202 
    203  con->fh = esd; 
     203 roar_connect_fh(con, esd); 
    204204 
    205205 r = malloc(sizeof(esd_info_t)); 
     
    334334 struct roar_mixer_settings mixer; 
    335335 
    336  con.fh = esd; 
     336 roar_connect_fh(&con, esd); 
    337337 
    338338 mixer.mixer[0] = left_scale  == 256 ? 65535 : left_scale  * 256; 
Note: See TracChangeset for help on using the changeset viewer.