summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-08-19 21:18:56 +0000
committermidipix <writeonce@midipix.org>2024-08-19 21:43:30 +0000
commit41736e9019c8bcf3fc45f042759182ea2c2d28bb (patch)
treebc99c3545109048a1c81503b469992ffde76f3f2 /src
parent1360348541c429a6e7bcb3e115c429e922f42243 (diff)
downloadptycon-41736e9019c8bcf3fc45f042759182ea2c2d28bb.tar.bz2
ptycon-41736e9019c8bcf3fc45f042759182ea2c2d28bb.tar.xz
internals: struct ptyc_daemon_ctx: added a pointer to the driver context.
Diffstat (limited to 'src')
-rw-r--r--src/driver/ptyc_driver_ctx.c3
-rw-r--r--src/internal/ptycon_daemon_impl.h2
2 files changed, 5 insertions, 0 deletions
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;
}
diff --git a/src/internal/ptycon_daemon_impl.h b/src/internal/ptycon_daemon_impl.h
index 1595984..af2da25 100644
--- a/src/internal/ptycon_daemon_impl.h
+++ b/src/internal/ptycon_daemon_impl.h
@@ -18,6 +18,8 @@ enum ptyc_daemon_opcodes {
typedef int32_t __stdcall ptyc_daemon_routine(nt_tty_port_msg *);
struct ptyc_daemon_ctx {
+ struct ptyc_driver_ctx *driver_ctx;
+
nt_port_keys daemon_keys;
nt_port_attr daemon_attr;
nt_port_name daemon_name;