From 8fca74cc1815c2816745bfac83cce30654cb9776 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 26 Oct 2016 22:15:56 -0400 Subject: internals: struct amgc_unit_ctx_impl: added error trace support. --- src/driver/amgc_unit_ctx.c | 1 + src/internal/apimagic_driver_impl.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3