From 9c202860ad2bc391a0ac8bc2e99b3e5624d2b472 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 30 Dec 2015 05:27:21 -0500 Subject: amgc_init_unit_meta(): initial implementation and integration. --- src/driver/amgc_unit_ctx.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/driver') 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; } -- cgit v1.2.3