Changeset 3764:2a2b1eb426c4 in roaraudio for roard/req.c


Ignore:
Timestamp:
05/03/10 14:30:48 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added new buffer function roar_buffer_new_data() to make common alloc case more easy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r3745 r3764  
    10341034 char               * buf; 
    10351035 
    1036  if ( roar_buffer_new(&b, mes->datalen) == -1 ) { 
     1036 if ( roar_buffer_new_data(&b, mes->datalen, (void **)&buf) == -1 ) { 
    10371037  ROAR_ERR("req_on_add_data(*): Can not alloc buffer space!"); 
    10381038  ROAR_DBG("req_on_add_data(*) = -1"); 
    10391039  return -1; 
    10401040 } 
    1041  
    1042  roar_buffer_get_data(b, (void **)&buf); 
    10431041 
    10441042 if ( data == NULL ) { 
Note: See TracChangeset for help on using the changeset viewer.