summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-24 19:03:17 -0400
committerDavid Robillard <d@drobilla.net>2022-10-24 19:03:17 -0400
commit78091cfd182f20e3e5d639e94bd3065e9672c5cb (patch)
treeecb7efdefac0ab7d82c36a26d4f8109629fa16dd
parentbc4b359747466f760f8861dad6d99d7005ff6a04 (diff)
downloadzix-78091cfd182f20e3e5d639e94bd3065e9672c5cb.tar.gz
zix-78091cfd182f20e3e5d639e94bd3065e9672c5cb.tar.bz2
zix-78091cfd182f20e3e5d639e94bd3065e9672c5cb.zip
Expose ring transaction API in shared library
-rw-r--r--include/zix/ring.h3
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);