summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-08 16:57:11 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:26 -0400
commit2de078329160a245dc95ab1cec99653e297e257b (patch)
tree21f277af3e6237650a965fa5698b41098295b56c /src/driver
parent0e0975a453a7cacee3e1baf95042ef151fc94720 (diff)
downloadptycon-2de078329160a245dc95ab1cec99653e297e257b.tar.bz2
ptycon-2de078329160a245dc95ab1cec99653e297e257b.tar.xz
driver: added --cat support.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ptyc_driver_ctx.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c
index 70d44f5..c6070e4 100644
--- a/src/driver/ptyc_driver_ctx.c
+++ b/src/driver/ptyc_driver_ctx.c
@@ -143,7 +143,7 @@ static struct ptyc_driver_ctx_impl * ptyc_driver_ctx_alloc(
memcpy(&ictx->ctx.cctx,cctx,sizeof(*cctx));
for (entry=meta->entries,units=ictx->units; entry->fopt || entry->arg; entry++)
- if (!entry->fopt)
+ if (entry->tag == TAG_CAT)
*units++ = entry->arg;
ictx->meta = meta;
@@ -217,9 +217,12 @@ int ptyc_get_driver_ctx(
else if (!strcmp("raw",entry->arg))
cctx.drvflags |= PTYC_DRIVER_DBG_RAW;
break;
+
+ case TAG_CAT:
+ nunits++;
+ break;
}
- } else
- nunits++;
+ }
}
if (!(ctx = ptyc_driver_ctx_alloc(meta,&cctx,nunits)))