summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-27 05:00:49 +0000
committermidipix <writeonce@midipix.org>2024-01-27 05:00:49 +0000
commit244523da3a422a3453205a5410519d685de39c8d (patch)
treed3d835d8697a8ed75df1bf5f206781c479ec699d /src
parent72214ba6ee6c61b4a196a9230546b908d3879d24 (diff)
downloadslibtool-244523da3a422a3453205a5410519d685de39c8d.tar.bz2
slibtool-244523da3a422a3453205a5410519d685de39c8d.tar.xz
struct slbt_archive_meta_impl: added pointer to the associated driver context.
Diffstat (limited to 'src')
-rw-r--r--src/arbits/slbt_archive_meta.c3
-rw-r--r--src/internal/slibtool_ar_impl.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index bf7efb0..cc14fe7 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -1200,6 +1200,9 @@ int slbt_get_archive_meta(
/* member vector */
m->armeta.a_memberv = m->memberv;
+ /* associated driver context */
+ m->dctx = dctx;
+
/* all done */
if (m->hdrinfov) {
free(m->hdrinfov);
diff --git a/src/internal/slibtool_ar_impl.h b/src/internal/slibtool_ar_impl.h
index bdaa3e5..b96b77b 100644
--- a/src/internal/slibtool_ar_impl.h
+++ b/src/internal/slibtool_ar_impl.h
@@ -18,6 +18,7 @@ struct ar_armaps_impl {
};
struct slbt_archive_meta_impl {
+ const struct slbt_driver_ctx * dctx;
size_t nentries;
void * hdrinfov;
char * namestrs;