summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-07 09:14:07 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:09 -0500
commitb83b64c040e7e858c53b4e3214751ef5fba68897 (patch)
tree6140d0291dd3b23f156c3ae18456d2af9819c139
parent116dbb9f65f5fe7d30801b00ef8b81710e2041a4 (diff)
downloadslibtool-b83b64c040e7e858c53b4e3214751ef5fba68897.tar.bz2
slibtool-b83b64c040e7e858c53b4e3214751ef5fba68897.tar.xz
driver: added context initialization for --output.
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/driver/slbt_driver_ctx.c4
2 files changed, 5 insertions, 0 deletions
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++;