Ignore:
Timestamp:
10/02/09 23:00:04 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

esd emulation code does check for byte order

File:
1 edited

Legend:

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

    r2791 r2828  
    192192 
    193193int emul_esd_test_byteorder(int client, void * data) { 
    194  // TODO: do a real test 
     194 struct roar_client * c; 
     195 
     196 if ( clients_get(client, &c) == -1 ) 
     197  return -1; 
     198 
     199// "NDNE"; 
     200 
     201 if ( !memcmp(data, "NDNE", 4) ) { 
     202  c->byteorder = ROAR_BYTEORDER_LE; 
     203 } else if ( !memcmp(data, "ENDE", 4) ) { 
     204  c->byteorder = ROAR_BYTEORDER_BE; 
     205 } else if ( !memcmp(data, "NEED", 4) ) { 
     206  c->byteorder = ROAR_BYTEORDER_PDP; 
     207 } else { 
     208  return -1; 
     209 } 
     210 
    195211 return 0; 
    196212} 
Note: See TracChangeset for help on using the changeset viewer.