diff options
author | midipix <writeonce@midipix.org> | 2016-03-06 14:17:52 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-08 14:21:08 -0500 |
commit | d03fbc17f423db1720a3509eba0affa753412ce5 (patch) | |
tree | fef9287bf4f40f0d91269f03906a7b4a8c5cf368 | |
parent | fea1b83bd5e116bdc7e92dab8677a976e3100ba1 (diff) | |
download | slibtool-d03fbc17f423db1720a3509eba0affa753412ce5.tar.bz2 slibtool-d03fbc17f423db1720a3509eba0affa753412ce5.tar.xz |
driver: added context initialization for --features.
-rw-r--r-- | include/slibtool/slibtool.h | 1 | ||||
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index fa808b9..7f48fdd 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -37,6 +37,7 @@ extern "C" { #define SLBT_DRIVER_DRY_RUN 0x0020 #define SLBT_DRIVER_CONFIG 0x0040 #define SLBT_DRIVER_DEBUG 0x0080 +#define SLBT_DRIVER_FEATURES 0x0100 /* execution modes */ enum slbt_mode { diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 16f9687..53cbcf8 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -170,6 +170,10 @@ int slbt_get_driver_ctx( case TAG_DEBUG: cctx.drvflags |= SLBT_DRIVER_DEBUG; break; + + case TAG_FEATURES: + cctx.drvflags |= SLBT_DRIVER_FEATURES; + break; } } else nunits++; |