From f67c207318b2f2e39d67dfbae582186cffa99666 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 13 Jul 2016 21:05:48 -0400 Subject: driver: added --daemon support. --- src/driver/ptyc_driver_ctx.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/driver') diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 7b0b596..4129cf5 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -204,6 +204,15 @@ int ptyc_get_driver_ctx( cctx.drvflags |= PTYC_DRIVER_VERSION; break; + case TAG_DAEMON: + if (!strcmp("always",entry->arg)) + cctx.drvflags |= PTYC_DRIVER_DAEMON_ALWAYS; + + else if (!strcmp("never",entry->arg)) + cctx.drvflags |= PTYC_DRIVER_DAEMON_NEVER; + + break; + case TAG_DEBUG: if (!entry->arg) { cctx.drvflags |= PTYC_DRIVER_DBG_EVENT; -- cgit v1.2.3