summaryrefslogtreecommitdiffhomepage
path: root/src/debug
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-07 03:53:59 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:25 -0400
commit1bab02981629876bc6059d9ba685b11ebd01374e (patch)
treebb6a6e83daf5432901f5d5a62305bab47f3bb01c /src/debug
parent31bc75f3cde588a8a28c2e3abc9b0bc38cca8baf (diff)
downloadptycon-1bab02981629876bc6059d9ba685b11ebd01374e.tar.bz2
ptycon-1bab02981629876bc6059d9ba685b11ebd01374e.tar.xz
logic: added console initialization and threaded loop allocation.
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/ptyc_dbg_event.c19
-rw-r--r--src/debug/ptyc_dbg_oven.c19
-rw-r--r--src/debug/ptyc_dbg_raw.c19
3 files changed, 57 insertions, 0 deletions
diff --git a/src/debug/ptyc_dbg_event.c b/src/debug/ptyc_dbg_event.c
new file mode 100644
index 0000000..45cea3e
--- /dev/null
+++ b/src/debug/ptyc_dbg_event.c
@@ -0,0 +1,19 @@
+/*********************************************************/
+/* ptycon: a pty-console bridge */
+/* Copyright (C) 2016 Z. Gilboa */
+/* Released under GPLv2 and GPLv3; see COPYING.PTYCON. */
+/*********************************************************/
+
+#include <psxtypes/psxtypes.h>
+#include <ntcon/ntcon.h>
+#include <ntapi/ntapi.h>
+#include <gdi/gdi.h>
+
+#include <ptycon/ptycon.h>
+#include "ptycon_driver_impl.h"
+
+int ptyc_dbg_event(struct ptyc_driver_ctx_impl * ictx)
+{
+ (void)ictx;
+ return ntapi->tt_wait_for_dummy_event();
+}
diff --git a/src/debug/ptyc_dbg_oven.c b/src/debug/ptyc_dbg_oven.c
new file mode 100644
index 0000000..393076d
--- /dev/null
+++ b/src/debug/ptyc_dbg_oven.c
@@ -0,0 +1,19 @@
+/*********************************************************/
+/* ptycon: a pty-console bridge */
+/* Copyright (C) 2016 Z. Gilboa */
+/* Released under GPLv2 and GPLv3; see COPYING.PTYCON. */
+/*********************************************************/
+
+#include <psxtypes/psxtypes.h>
+#include <ntcon/ntcon.h>
+#include <ntapi/ntapi.h>
+#include <gdi/gdi.h>
+
+#include <ptycon/ptycon.h>
+#include "ptycon_driver_impl.h"
+
+int ptyc_dbg_oven(struct ptyc_driver_ctx_impl * ictx)
+{
+ (void)ictx;
+ return ntapi->tt_wait_for_dummy_event();
+}
diff --git a/src/debug/ptyc_dbg_raw.c b/src/debug/ptyc_dbg_raw.c
new file mode 100644
index 0000000..8804ca6
--- /dev/null
+++ b/src/debug/ptyc_dbg_raw.c
@@ -0,0 +1,19 @@
+/*********************************************************/
+/* ptycon: a pty-console bridge */
+/* Copyright (C) 2016 Z. Gilboa */
+/* Released under GPLv2 and GPLv3; see COPYING.PTYCON. */
+/*********************************************************/
+
+#include <psxtypes/psxtypes.h>
+#include <ntcon/ntcon.h>
+#include <ntapi/ntapi.h>
+#include <gdi/gdi.h>
+
+#include <ptycon/ptycon.h>
+#include "ptycon_driver_impl.h"
+
+int ptyc_dbg_raw(struct ptyc_driver_ctx_impl * ictx)
+{
+ (void)ictx;
+ return ntapi->tt_wait_for_dummy_event();
+}