From 0a9bff7db844b4bf21bf548616647bddecb13ff2 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 3 May 2016 14:43:21 -0400 Subject: driver: added --legabits support. --- src/driver/slbt_driver_ctx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/driver') diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 8d8faa9..44e92c8 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -874,6 +874,16 @@ int slbt_get_driver_ctx( cctx.drvflags |= SLBT_DRIVER_FEATURES; break; + case TAG_LEGABITS: + if (!entry->arg) + cctx.drvflags |= SLBT_DRIVER_LEGABITS; + + else if (!strcmp("enabled",entry->arg)) + cctx.drvflags |= SLBT_DRIVER_LEGABITS; + + else + cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_LEGABITS; + case TAG_WARNINGS: if (!strcmp("all",entry->arg)) cctx.warnings = SLBT_WARNING_LEVEL_ALL; -- cgit v1.2.3