From 1bab02981629876bc6059d9ba685b11ebd01374e Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 7 Jul 2016 03:53:59 -0400 Subject: logic: added console initialization and threaded loop allocation. --- src/debug/ptyc_dbg_event.c | 19 +++++++++++++++++++ src/debug/ptyc_dbg_oven.c | 19 +++++++++++++++++++ src/debug/ptyc_dbg_raw.c | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 src/debug/ptyc_dbg_event.c create mode 100644 src/debug/ptyc_dbg_oven.c create mode 100644 src/debug/ptyc_dbg_raw.c (limited to 'src/debug') 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 +#include +#include +#include + +#include +#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 +#include +#include +#include + +#include +#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 +#include +#include +#include + +#include +#include "ptycon_driver_impl.h" + +int ptyc_dbg_raw(struct ptyc_driver_ctx_impl * ictx) +{ + (void)ictx; + return ntapi->tt_wait_for_dummy_event(); +} -- cgit v1.2.3