From 41736e9019c8bcf3fc45f042759182ea2c2d28bb Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Aug 2024 21:18:56 +0000 Subject: internals: struct ptyc_daemon_ctx: added a pointer to the driver context. --- src/driver/ptyc_driver_ctx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/driver') diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 118fd7b..5be2ec7 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -172,6 +172,9 @@ static struct ptyc_driver_ctx_impl * ptyc_driver_ctx_alloc( ictx->meta = meta; ictx->ctx.ctx.units = ictx->units; ictx->ctx.rtdata = rtdata; + + ptyc_daemon_ctx.driver_ctx = &ictx->ctx.ctx; + return &ictx->ctx; } -- cgit v1.2.3