From b83b64c040e7e858c53b4e3214751ef5fba68897 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 7 Mar 2016 09:14:07 -0500 Subject: driver: added context initialization for --output. --- include/slibtool/slibtool.h | 1 + src/driver/slbt_driver_ctx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 7403234..4ac8c44 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -81,6 +81,7 @@ struct slbt_common_ctx { enum slbt_mode mode; enum slbt_tag tag; enum slbt_warning_level warnings; + const char * output; }; struct slbt_driver_ctx { diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index f3e0f68..d7e8c14 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -197,6 +197,10 @@ int slbt_get_driver_ctx( case TAG_VERBOSE: cctx.drvflags |= SLBT_DRIVER_VERBOSE; break; + + case TAG_OUTPUT: + cctx.output = entry->arg; + break; } } else nunits++; -- cgit v1.2.3