summaryrefslogtreecommitdiffhomepage
path: root/src/driver/ptyc_driver_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/ptyc_driver_ctx.c')
-rw-r--r--src/driver/ptyc_driver_ctx.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c
index d403a98..e21e7ab 100644
--- a/src/driver/ptyc_driver_ctx.c
+++ b/src/driver/ptyc_driver_ctx.c
@@ -193,6 +193,20 @@ int ptyc_get_driver_ctx(
case TAG_VERSION:
cctx.drvflags |= PTYC_DRIVER_VERSION;
break;
+
+ case TAG_DEBUG:
+ if (!entry->arg)
+ cctx.drvflags |= PTYC_DRIVER_DBG_EVENT;
+
+ else if (!strcmp("event",entry->arg))
+ cctx.drvflags |= PTYC_DRIVER_DBG_EVENT;
+
+ else if (!strcmp("oven",entry->arg))
+ cctx.drvflags |= PTYC_DRIVER_DBG_OVEN;
+
+ else if (!strcmp("raw",entry->arg))
+ cctx.drvflags |= PTYC_DRIVER_DBG_RAW;
+ break;
}
} else
nunits++;