From 538c8a5109b56d1d0a26631fa93913341214501d Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 5 Jul 2016 17:00:06 -0400 Subject: pty layer: added ptyc_alloc_pty(), ptyc_free_pty(). --- include/ptycon/ptycon.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/ptycon/ptycon.h b/include/ptycon/ptycon.h index 9d10ff9..6309f27 100644 --- a/include/ptycon/ptycon.h +++ b/include/ptycon/ptycon.h @@ -34,6 +34,8 @@ extern "C" { #define PTYC_DRIVER_VERSION 0x0010 #define PTYC_DRIVER_DRY_RUN 0x0020 +#define PTYC_DRIVER_DBG_OVEN 0x0040 +#define PTYC_DRIVER_DBG_RAW 0x0080 struct ptyc_source_version { int major; @@ -46,6 +48,8 @@ struct ptyc_common_ctx { uint64_t drvflags; uint64_t actflags; uint64_t fmtflags; + nt_pty * hpts; + nt_pty * hptm; }; struct ptyc_driver_ctx { @@ -66,6 +70,10 @@ ptyc_api int ptyc_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, s ptyc_api int ptyc_create_driver_ctx (const struct ptyc_common_ctx *, struct ptyc_driver_ctx **); ptyc_api void ptyc_free_driver_ctx (struct ptyc_driver_ctx *); +/* pty api */ +ptyc_api int ptyc_alloc_pty (struct ptyc_driver_ctx *); +ptyc_api void ptyc_free_pty (struct ptyc_driver_ctx *); + /* utility api */ ptyc_api int ptyc_main (int, char **, char **); -- cgit v1.2.3