From b1d1a03e15a45cd6c32ed16116cb78c614e57f82 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 27 2024 05:04:42 +0000 Subject: struct slbt_archive_ctx_impl: added pointer to the associated driver context. --- 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;