Changeset 2526:9ab4a3ccacf0 in roaraudio for plugins/roard


Ignore:
Timestamp:
09/01/09 19:05:30 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

wrote basic emul_esd_on_connect()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/protocol-esound.c

    r2525 r2526  
    159159} 
    160160 
    161 int emul_esd_test_byteorder(int client, void * data, struct roar_vio_calls * vio) { 
     161int emul_esd_test_byteorder(int client, void * data) { 
    162162 // TODO: do a real test 
    163163 return 0; 
     
    166166// handler: 
    167167int emul_esd_on_connect    (int client, struct emul_esd_command * cmd, void * data, struct roar_vio_calls * vio) { 
    168  return -1; 
     168 if ( client == -1 || data == NULL || vio == NULL ) 
     169  return -1; 
     170 
     171 if ( emul_esd_test_auth(client, data, vio) == -1 ) 
     172  return -1; 
     173 
     174 if ( emul_esd_test_byteorder(client, data+ESD_KEY_LEN) == -1 ) 
     175  return -1; 
     176 
     177 return 0; 
    169178} 
    170179 
Note: See TracChangeset for help on using the changeset viewer.