From d03fbc17f423db1720a3509eba0affa753412ce5 Mon Sep 17 00:00:00 2001 From: midipix Date: Mar 08 2016 19:21:08 +0000 Subject: driver: added context initialization for --features. --- 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++;