aboutsummaryrefslogtreecommitdiff
path: root/ringbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'ringbuff.c')
-rw-r--r--ringbuff.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ringbuff.c b/ringbuff.c
index 47d4cbf..a963beb 100644
--- a/ringbuff.c
+++ b/ringbuff.c
@@ -74,6 +74,18 @@ ring_pop_back(struct ring_buffer *rb, T *data)
74 return true; 74 return true;
75} 75}
76 76
77bool
78ring_put(struct ring_buffer *rb, T data)
79{
80 return ring_push_back(rb, data);
81}
82
83bool
84ring_get(struct ring_buffer *rb, T *data)
85{
86 return ring_pop_front(rb, data);
87}
88
77void 89void
78f() 90f()
79{ 91{