diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/amgc_unit_ctx.c | 1 | ||||
-rw-r--r-- | src/internal/apimagic_driver_impl.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c index cfc2c0b..40f4257 100644 --- a/src/driver/amgc_unit_ctx.c +++ b/src/driver/amgc_unit_ctx.c @@ -169,6 +169,7 @@ int amgc_get_unit_ctx( memcpy(&ctx->cctx,dctx->cctx, sizeof(ctx->cctx)); + ctx->dctx = dctx; ctx->path = path; ctx->uctx.path = &ctx->path; ctx->uctx.map = &ctx->map; diff --git a/src/internal/apimagic_driver_impl.h b/src/internal/apimagic_driver_impl.h index 5ddf234..a2c9a5e 100644 --- a/src/internal/apimagic_driver_impl.h +++ b/src/internal/apimagic_driver_impl.h @@ -41,6 +41,7 @@ struct amgc_driver_ctx_impl { }; struct amgc_unit_ctx_impl { + const struct amgc_driver_ctx * dctx; const char * path; struct amgc_input map; struct amgc_common_ctx cctx; |