From 1e49c7f2662513c72ddb63215519417b169ad75d Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 25 May 2024 14:08:47 +0000 Subject: tpax_get_driver_dirmark(): also keep track of the number of queued entries. --- src/internal/tpax_driver_impl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h index 9860717..2aca3d1 100644 --- a/src/internal/tpax_driver_impl.h +++ b/src/internal/tpax_driver_impl.h @@ -83,6 +83,7 @@ struct tpax_driver_ctx_impl { void * dirbuff; void * bufaddr; size_t bufsize; + size_t nqueued; off_t cpos; }; @@ -225,6 +226,7 @@ static inline void tpax_set_driver_dirmark(const struct tpax_driver_ctx * dctx, struct tpax_driver_ctx_impl * ictx; ictx = tpax_get_driver_ictx(dctx); ictx->dirmark = dirent; + ictx->nqueued++; } static inline off_t tpax_get_unit_hpos(const struct tpax_unit_ctx * uctx) -- cgit v1.2.3