summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-06 14:42:20 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:08 -0500
commit3984195251ab90b2479a485ecb9017c67a3d6843 (patch)
treec053c0360d63e979aad2bcd06560a7540c19b275
parent40fabb60a29153aeb9aba307f0266bd7539f9878 (diff)
downloadslibtool-3984195251ab90b2479a485ecb9017c67a3d6843.tar.bz2
slibtool-3984195251ab90b2479a485ecb9017c67a3d6843.tar.xz
driver: added context initialization for --silent.
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/driver/slbt_driver_ctx.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index 0b62be5..cb1a71f 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -39,6 +39,7 @@ extern "C" {
#define SLBT_DRIVER_DEBUG 0x0080
#define SLBT_DRIVER_FEATURES 0x0100
#define SLBT_DRIVER_DEPS 0x0200
+#define SLBT_DRIVER_SILENT 0x0400
/* execution modes */
enum slbt_mode {
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 0e07c12..e29d9ed 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -190,6 +190,9 @@ int slbt_get_driver_ctx(
cctx.drvflags |= SLBT_DRIVER_DEPS;
break;
+ case TAG_SILENT:
+ cctx.drvflags |= SLBT_DRIVER_SILENT;
+ break;
}
} else
nunits++;