summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-05 17:00:06 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:25 -0400
commit538c8a5109b56d1d0a26631fa93913341214501d (patch)
tree72933385600f4524afc6e7a96e9f62a9d3dd069f /include
parent4695532805c24af1965ef1407720c8db086e14b3 (diff)
downloadptycon-538c8a5109b56d1d0a26631fa93913341214501d.tar.bz2
ptycon-538c8a5109b56d1d0a26631fa93913341214501d.tar.xz
pty layer: added ptyc_alloc_pty(), ptyc_free_pty().
Diffstat (limited to 'include')
-rw-r--r--include/ptycon/ptycon.h8
1 files changed, 8 insertions, 0 deletions
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 **);