summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-05 20:48:04 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:25 -0400
commit64c88753aee1bbfeee00f9eeb5c561b839873f8d (patch)
tree15aca4e57724b8f819eeebc79bdfb16077ca41ad /src/driver
parent538c8a5109b56d1d0a26631fa93913341214501d (diff)
downloadptycon-64c88753aee1bbfeee00f9eeb5c561b839873f8d.tar.bz2
ptycon-64c88753aee1bbfeee00f9eeb5c561b839873f8d.tar.xz
driver: added --debug support.
Diffstat (limited to 'src/driver')
-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++;