Changeset 5148:73d76a74be61 in roaraudio for libroar/basic.c


Ignore:
Timestamp:
10/15/11 14:29:29 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

improved error handling some more, marked some stuff as obsolete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r5146 r5148  
    374374 
    375375int roar_wait_msg     (struct roar_connection * con, int16_t seq, int16_t seqmask) { 
     376 roar_err_set(ROAR_ERROR_NOSYS); 
    376377 return -1; 
    377378} 
     
    381382 
    382383 if ( con == NULL ) { 
     384  roar_err_set(ROAR_ERROR_FAULT); 
    383385  return -1; 
    384386 } 
     
    436438 
    437439int roar_debug_message_print (struct roar_message * mes) { 
    438  if ( mes == NULL ) 
    439   return -1; 
     440 roar_debug_warn_obsolete("roar_debug_message_print", NULL, NULL); 
     441 
     442 if ( mes == NULL ) { 
     443  roar_err_set(ROAR_ERROR_FAULT); 
     444  return -1; 
     445 } 
    440446 
    441447 ROAR_DBG("roar_debug_message_print(*): Command: %i", mes->cmd); 
     
    449455 
    450456int roar_debug_audio_info_print (struct roar_audio_info * info) { 
    451  if ( info == NULL ) 
    452   return -1; 
     457 if ( info == NULL ) { 
     458  roar_err_set(ROAR_ERROR_FAULT); 
     459  return -1; 
     460 } 
    453461 
    454462 ROAR_DBG("roar_debug_audio_info_print(*): Rate    : %i", info->rate); 
Note: See TracChangeset for help on using the changeset viewer.