diff options
Diffstat (limited to 'include/zix/ring.h')
-rw-r--r-- | include/zix/ring.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/zix/ring.h b/include/zix/ring.h index 61c99be..db72f41 100644 --- a/include/zix/ring.h +++ b/include/zix/ring.h @@ -40,7 +40,8 @@ typedef struct ZixRingImpl ZixRing; At most `size` - 1 bytes may be stored in the ring at once. */ -ZIX_MALLOC_API +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); |