summaryrefslogtreecommitdiffhomepage
path: root/src/daemon/ptyc_daemon_loop.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-14 07:35:48 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:28 -0400
commit778de5176a3683e31be94f6b21aa1266dae00934 (patch)
tree8535e2e10164c30ad0c60a21e7d888de46933e5b /src/daemon/ptyc_daemon_loop.c
parenta389fbf9c977d50c492d8efb6b9e260572f1eb9a (diff)
downloadptycon-778de5176a3683e31be94f6b21aa1266dae00934.tar.bz2
ptycon-778de5176a3683e31be94f6b21aa1266dae00934.tar.xz
daemon: added daemon initialization logic.
Diffstat (limited to 'src/daemon/ptyc_daemon_loop.c')
-rw-r--r--src/daemon/ptyc_daemon_loop.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/daemon/ptyc_daemon_loop.c b/src/daemon/ptyc_daemon_loop.c
new file mode 100644
index 0000000..954ed8c
--- /dev/null
+++ b/src/daemon/ptyc_daemon_loop.c
@@ -0,0 +1,18 @@
+/*********************************************************/
+/* ptycon: a pty-console bridge */
+/* Copyright (C) 2016 Z. Gilboa */
+/* Released under GPLv2 and GPLv3; see COPYING.PTYCON. */
+/*********************************************************/
+
+#include <psxtypes/psxtypes.h>
+#include <ntapi/ntapi.h>
+
+#include <ptycon/ptycon.h>
+#include "ptycon_daemon_impl.h"
+#include "ptycon_driver_impl.h"
+
+int32_t __stdcall ptyc_daemon_loop(void * ctx)
+{
+ (void)ctx;
+ return ntapi->tt_wait_for_dummy_event();
+}