From a0e0a47d55765a9936f0d4bee84eea14c1fcdb8c Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 18 May 2024 16:28:40 +0000 Subject: item queue: internal driver context: save mark to last queued item. --- src/internal/tpax_driver_impl.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/internal') 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; -- cgit v1.2.3