summaryrefslogtreecommitdiffstats
path: root/include/zix/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/zix/ring.h')
-rw-r--r--include/zix/ring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/zix/ring.h b/include/zix/ring.h
index a18a50b..db72f41 100644
--- a/include/zix/ring.h
+++ b/include/zix/ring.h
@@ -41,6 +41,7 @@ typedef struct ZixRingImpl ZixRing;
At most `size` - 1 bytes may be stored in the ring at once.
*/
ZIX_API
+ZIX_NODISCARD
ZixRing* ZIX_ALLOCATED
zix_ring_new(ZixAllocator* ZIX_NULLABLE allocator, uint32_t size);
@@ -155,6 +156,7 @@ zix_ring_write(ZixRing* ZIX_NONNULL ring,
@return A new empty transaction.
*/
ZIX_API
+ZIX_NODISCARD
ZixRingTransaction
zix_ring_begin_write(ZixRing* ZIX_NONNULL ring);