summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ptycon_daemon_impl.h2
-rw-r--r--src/internal/ptycon_driver_impl.h2
-rw-r--r--src/internal/ptycon_nolibc_impl.c5
-rw-r--r--src/internal/ptycon_nolibc_impl.h4
4 files changed, 13 insertions, 0 deletions
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;
diff --git a/src/internal/ptycon_driver_impl.h b/src/internal/ptycon_driver_impl.h
index 1037894..3853751 100644
--- a/src/internal/ptycon_driver_impl.h
+++ b/src/internal/ptycon_driver_impl.h
@@ -61,6 +61,8 @@ struct ptyc_driver_ctx_impl {
struct ptyc_loop_ctx lctx;
struct ptyc_common_ctx cctx;
struct ptyc_driver_ctx ctx;
+ void * hntpipc;
+ void * hpidmap;
};
static inline struct ptyc_driver_ctx_impl * ptyc_get_driver_ictx(struct ptyc_driver_ctx * dctx)
diff --git a/src/internal/ptycon_nolibc_impl.c b/src/internal/ptycon_nolibc_impl.c
index 2319505..c489b98 100644
--- a/src/internal/ptycon_nolibc_impl.c
+++ b/src/internal/ptycon_nolibc_impl.c
@@ -61,6 +61,11 @@ char * ptyc_strrchr(const char * ch, int c)
return 0;
}
+int ptyc_isblank(int c)
+{
+ return ((c == 0x20) || (c == 0x09));
+}
+
#ifdef PTYC_EXPORT
int __stdcall ptycon_entry_point(void * hinstance, uint32_t reason, void * reserved)
{
diff --git a/src/internal/ptycon_nolibc_impl.h b/src/internal/ptycon_nolibc_impl.h
index 0c58141..c9caf13 100644
--- a/src/internal/ptycon_nolibc_impl.h
+++ b/src/internal/ptycon_nolibc_impl.h
@@ -16,6 +16,8 @@
#define strchr ptyc_strchr
#define strrchr ptyc_strrchr
+#define isblank ptyc_isblank
+
#define calloc ptyc_calloc
#define free ptyc_free
@@ -35,6 +37,8 @@ int ptyc_strncmp(const char * a, const char * b, size_t n);
char * ptyc_strchr(const char * ch, int c);
char * ptyc_strrchr(const char * ch, int c);
+int ptyc_isblank(int c);
+
void * ptyc_calloc(size_t n, size_t size);
void ptyc_free(void *);