Changeset 5348:83fcc9598253 in roaraudio for include


Ignore:
Timestamp:
12/11/11 12:38:30 (10 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Converted roar_buffer API to fully use refcounter (Closes: #126)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/buffer.h

    r5302 r5348  
    6565#define roar_buffer_free(x)    roar_buffer_unref(x) 
    6666 
    67 #define roar_buffer_foreach(cur) for (; (cur) != NULL; (cur) = (roar_buffer_get_next((cur), &(cur)) == -1) ? NULL : (cur)) 
     67#define roar_buffer_foreach(cur) for (; (cur) != NULL; (cur) = (roar_buffer_next(&(cur)) == -1) ? NULL : (cur)) 
    6868 
    6969int roar_buffer_new_no_ma(struct roar_buffer ** buf, size_t len, void * data) _LIBROAR_BUFFER_STDATTRS; // no internal malloc 
Note: See TracChangeset for help on using the changeset viewer.