summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-13 05:22:07 +0000
committermidipix <writeonce@midipix.org>2024-02-13 05:22:07 +0000
commitc1f21665c7010c70b87f79e1b81dc7f2564f26c9 (patch)
tree3b09adc125a5df414af01281d32b23208c934272 /src/driver/slbt_driver_ctx.c
parent97bc5cffc0f90991211524321e423a3b0b5e5ea2 (diff)
downloadslibtool-c1f21665c7010c70b87f79e1b81dc7f2564f26c9.tar.bz2
slibtool-c1f21665c7010c70b87f79e1b81dc7f2564f26c9.tar.xz
utility: newly added --config, now producing compatible --config output.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index bfb2206..a6e93d0 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -493,6 +493,10 @@ int slbt_get_driver_ctx(
cctx.drvflags |= SLBT_DRIVER_INFO;
break;
+ case TAG_CONFIG:
+ cctx.drvflags |= SLBT_DRIVER_OUTPUT_CONFIG;
+ break;
+
case TAG_DUMPMACHINE:
cctx.drvflags |= SLBT_DRIVER_OUTPUT_MACHINE;
break;
@@ -773,6 +777,10 @@ int slbt_get_driver_ctx(
cctx.output = 0;
}
+ /* config mode */
+ if (cctx.drvflags & SLBT_DRIVER_OUTPUT_CONFIG)
+ cctx.mode = SLBT_MODE_CONFIG;
+
/* info mode */
if (cctx.drvflags & (SLBT_DRIVER_INFO | SLBT_DRIVER_FEATURES))
cctx.mode = SLBT_MODE_INFO;