summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-26 22:15:56 -0400
committermidipix <writeonce@midipix.org>2016-10-26 22:23:17 -0400
commit8fca74cc1815c2816745bfac83cce30654cb9776 (patch)
tree5eec0c126610e279898a163004636793a059ccfc /src
parent4aebb45a7bdb9e4e0941b237ce4c7b37a79f205c (diff)
downloadapimagic-8fca74cc1815c2816745bfac83cce30654cb9776.tar.bz2
apimagic-8fca74cc1815c2816745bfac83cce30654cb9776.tar.xz
internals: struct amgc_unit_ctx_impl: added error trace support.
Diffstat (limited to 'src')
-rw-r--r--src/driver/amgc_unit_ctx.c1
-rw-r--r--src/internal/apimagic_driver_impl.h1
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;