[common] ringbuffer: allow reverse iteration

This commit is contained in:
Geoffrey McRae committed 2021-08-09 14:06:32 +10:00
1 parent 91d1b8d2cd
commit 69f6532b8d
3 files changed
+30 -10

No files matched your search

+1 -1
View File
@@ -42,4 +42,4 @@ void ringbuffer_setPreOverwriteFn(RingBuffer rb, RingBufferValueFn fn,
typedef bool (*RingBufferIterator)(int index, void * value, void * udata);
void ringbuffer_forEach(const RingBuffer rb, RingBufferIterator fn,
void * udata);
void * udata, bool reverse);