summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-27 05:04:42 +0000
committermidipix <writeonce@midipix.org>2024-01-27 05:04:42 +0000
commitb1d1a03e15a45cd6c32ed16116cb78c614e57f82 (patch)
treedcfce5387d889bd03527a4c5988f72cb4febfab0
parent244523da3a422a3453205a5410519d685de39c8d (diff)
downloadslibtool-b1d1a03e15a45cd6c32ed16116cb78c614e57f82.tar.bz2
slibtool-b1d1a03e15a45cd6c32ed16116cb78c614e57f82.tar.xz
struct slbt_archive_ctx_impl: added pointer to the associated driver context.
-rw-r--r--src/arbits/slbt_archive_ctx.c1
-rw-r--r--src/internal/slibtool_driver_impl.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/arbits/slbt_archive_ctx.c b/src/arbits/slbt_archive_ctx.c
index c9c1a7d..6e93a70 100644
--- a/src/arbits/slbt_archive_ctx.c
+++ b/src/arbits/slbt_archive_ctx.c
@@ -84,6 +84,7 @@ int slbt_get_archive_ctx(
return slbt_free_archive_ctx_impl(ctx,
SLBT_NESTED_ERROR(dctx));
+ ctx->dctx = dctx;
ctx->path = path;
ctx->actx.path = &ctx->path;
ctx->actx.map = &ctx->map;
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index 9aca3f6..b1a07f7 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -150,6 +150,7 @@ struct slbt_exec_ctx_impl {
};
struct slbt_archive_ctx_impl {
+ const struct slbt_driver_ctx * dctx;
const char * path;
struct slbt_raw_archive map;
struct slbt_archive_meta * meta;