summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-30 05:27:21 -0500
committermidipix <writeonce@midipix.org>2016-01-01 22:50:24 -0500
commit9c202860ad2bc391a0ac8bc2e99b3e5624d2b472 (patch)
tree29e6995f8b40a2b019c71cea9b707f4d2d2385b9 /src/driver
parentf0e1b6834ba12762c51f2f1430238fac62ab47ef (diff)
downloadapimagic-9c202860ad2bc391a0ac8bc2e99b3e5624d2b472.tar.bz2
apimagic-9c202860ad2bc391a0ac8bc2e99b3e5624d2b472.tar.xz
amgc_init_unit_meta(): initial implementation and integration.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/amgc_unit_ctx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c
index a37706c..4da986a 100644
--- a/src/driver/amgc_unit_ctx.c
+++ b/src/driver/amgc_unit_ctx.c
@@ -154,8 +154,12 @@ int amgc_get_unit_ctx(
ctx->uctx.path = &ctx->path;
ctx->uctx.map = &ctx->map;
ctx->uctx.cctx = &ctx->cctx;
+ ctx->uctx.meta = &ctx->meta;
ctx->uctx.ccunit= &ctx->ccunit;
+ if (amgc_init_unit_meta(&ctx->uctx,&ctx->meta))
+ return amgc_free_unit_ctx_impl(ctx,-1);
+
*pctx = &ctx->uctx;
return 0;
}