diff options
author | David Robillard <d@drobilla.net> | 2022-10-24 19:03:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-24 19:03:17 -0400 |
commit | 78091cfd182f20e3e5d639e94bd3065e9672c5cb (patch) | |
tree | ecb7efdefac0ab7d82c36a26d4f8109629fa16dd /include/zix | |
parent | bc4b359747466f760f8861dad6d99d7005ff6a04 (diff) | |
download | zix-78091cfd182f20e3e5d639e94bd3065e9672c5cb.tar.gz zix-78091cfd182f20e3e5d639e94bd3065e9672c5cb.tar.bz2 zix-78091cfd182f20e3e5d639e94bd3065e9672c5cb.zip |
Expose ring transaction API in shared library
Diffstat (limited to 'include/zix')
-rw-r--r-- | include/zix/ring.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zix/ring.h b/include/zix/ring.h index 17a0e13..04c3bda 100644 --- a/include/zix/ring.h +++ b/include/zix/ring.h @@ -153,6 +153,7 @@ zix_ring_write(ZixRing* ZIX_NONNULL ring, @param ring The ring to write data to. @return A new empty transaction. */ +ZIX_API ZixRingTransaction zix_ring_begin_write(ZixRing* ZIX_NONNULL ring); @@ -174,6 +175,7 @@ zix_ring_begin_write(ZixRing* ZIX_NONNULL ring); @param size Length of data to write in bytes. @return #ZIX_STATUS_NO_MEM or #ZIX_STATUS_SUCCESS. */ +ZIX_API ZixStatus zix_ring_amend_write(ZixRing* ZIX_NONNULL ring, ZixRingTransaction* ZIX_NONNULL tx, @@ -193,6 +195,7 @@ zix_ring_amend_write(ZixRing* ZIX_NONNULL ring, @param tx The active transaction, from zix_ring_begin_write(). @return #ZIX_STATUS_SUCCESS. */ +ZIX_API ZixStatus zix_ring_commit_write(ZixRing* ZIX_NONNULL ring, const ZixRingTransaction* ZIX_NONNULL tx); |