summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-05-18 16:28:40 +0000
committermidipix <writeonce@midipix.org>2024-05-19 03:36:18 +0000
commita0e0a47d55765a9936f0d4bee84eea14c1fcdb8c (patch)
treecdaa0b672386bb55838360e40eca2f8345eb9027 /src/internal
parent76f93abddc5faa354099227af1cf45406be8a01f (diff)
downloadtpax-a0e0a47d55765a9936f0d4bee84eea14c1fcdb8c.tar.bz2
tpax-a0e0a47d55765a9936f0d4bee84eea14c1fcdb8c.tar.xz
item queue: internal driver context: save mark to last queued item.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/tpax_driver_impl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h
index ea02185..9860717 100644
--- a/src/internal/tpax_driver_impl.h
+++ b/src/internal/tpax_driver_impl.h
@@ -79,6 +79,7 @@ struct tpax_driver_ctx_impl {
char ** prefcap;
char * prefptr[64];
struct tpax_dirent_buffer * dirents;
+ struct tpax_dirent * dirmark;
void * dirbuff;
void * bufaddr;
size_t bufsize;
@@ -212,6 +213,20 @@ static inline struct tpax_dirent_buffer * tpax_get_driver_dirents(const struct t
return ictx->dirents;
}
+static inline struct tpax_dirent * tpax_get_driver_dirmark(const struct tpax_driver_ctx * dctx)
+{
+ struct tpax_driver_ctx_impl * ictx;
+ ictx = tpax_get_driver_ictx(dctx);
+ return ictx->dirmark;
+}
+
+static inline void tpax_set_driver_dirmark(const struct tpax_driver_ctx * dctx, struct tpax_dirent * dirent)
+{
+ struct tpax_driver_ctx_impl * ictx;
+ ictx = tpax_get_driver_ictx(dctx);
+ ictx->dirmark = dirent;
+}
+
static inline off_t tpax_get_unit_hpos(const struct tpax_unit_ctx * uctx)
{
struct tpax_unit_ctx_impl * ictx;