Changeset 3758:0828b83f016a in roaraudio


Ignore:
Timestamp:
05/02/10 03:18:13 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added additional members to msg and con structs

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/basic.h

    r3517 r3758  
    5353 int datalen; 
    5454 char data[LIBROAR_BUFFER_MSGDATA]; 
     55 int16_t seq; 
     56 int32_t flags; 
     57 int32_t crc; 
    5558}; 
    5659 
    5760struct roar_connection { 
    5861 int __fh; 
     62 int32_t flags; 
     63 struct roar_vio_calls viocon; 
     64 struct roar_buffer * msgqueue; 
    5965}; 
    6066 
  • libroar/basic.c

    r3722 r3758  
    370370 ROAR_DBG("roar_recv_message(*): try to get a response form the server..."); 
    371371 
    372  if ( data ) 
     372 if ( mes == NULL ) 
     373  return -1; 
     374 
     375 if ( data != NULL ) 
    373376  *data = NULL; 
     377 
     378 memset(mes, 0, sizeof(struct roar_message)); 
    374379 
    375380 if ( roar_vio_read(vio, buf, _ROAR_MESS_BUF_LEN) != _ROAR_MESS_BUF_LEN ) { 
Note: See TracChangeset for help on using the changeset viewer.