diff options
author | midipix <writeonce@midipix.org> | 2016-07-13 02:17:01 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:27 -0400 |
commit | 5399d490f74045133a0aeb1bd619c5fee8221c8a (patch) | |
tree | 36668796422f5fc5d7c615c5d5460189efa1c4b7 /src/console | |
parent | 029664574763aa7725e490b2754aa00e74d8fdce (diff) | |
download | ptycon-5399d490f74045133a0aeb1bd619c5fee8221c8a.tar.bz2 ptycon-5399d490f74045133a0aeb1bd619c5fee8221c8a.tar.xz |
threaded loop, debug threads: fix linkage of entry points (for i686/nt32).
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/ptyc_console_alloc.c | 16 | ||||
-rw-r--r-- | src/console/ptyc_console_ctrl.c | 2 | ||||
-rw-r--r-- | src/console/ptyc_console_poller.c | 2 | ||||
-rw-r--r-- | src/console/ptyc_console_reader.c | 2 | ||||
-rw-r--r-- | src/console/ptyc_console_writer.c | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/console/ptyc_console_alloc.c b/src/console/ptyc_console_alloc.c index 16fb139..b1fee77 100644 --- a/src/console/ptyc_console_alloc.c +++ b/src/console/ptyc_console_alloc.c @@ -13,16 +13,16 @@ #include "ptycon_driver_impl.h" #include "ptycon_status_impl.h" -int ptyc_console_ctrl(uint32_t); +int __stdcall ptyc_console_ctrl(uint32_t); -int ptyc_console_reader(void *); -int ptyc_console_writer(void *);; -int ptyc_console_poller(void *); +int __stdcall ptyc_console_reader(void *); +int __stdcall ptyc_console_writer(void *);; +int __stdcall ptyc_console_poller(void *); -int ptyc_dbg_cat(struct ptyc_driver_ctx *); -int ptyc_dbg_event(void *); -int ptyc_dbg_oven(void *); -int ptyc_dbg_raw(void *); +int __stdcall ptyc_dbg_cat(struct ptyc_driver_ctx *); +int __stdcall ptyc_dbg_event(void *); +int __stdcall ptyc_dbg_oven(void *); +int __stdcall ptyc_dbg_raw(void *); struct ptyc_loop_thread_ctx { diff --git a/src/console/ptyc_console_ctrl.c b/src/console/ptyc_console_ctrl.c index d20ef12..68e1da7 100644 --- a/src/console/ptyc_console_ctrl.c +++ b/src/console/ptyc_console_ctrl.c @@ -12,7 +12,7 @@ #include <ptycon/ptycon.h> #include "ptycon_driver_impl.h" -int ptyc_console_ctrl(uint32_t type) +int __stdcall ptyc_console_ctrl(uint32_t type) { return type; } diff --git a/src/console/ptyc_console_poller.c b/src/console/ptyc_console_poller.c index 60e3d8b..1c029cb 100644 --- a/src/console/ptyc_console_poller.c +++ b/src/console/ptyc_console_poller.c @@ -12,7 +12,7 @@ #include <ptycon/ptycon.h> #include "ptycon_driver_impl.h" -int ptyc_console_poller(struct ptyc_driver_ctx_impl * ictx) +int __stdcall ptyc_console_poller(struct ptyc_driver_ctx_impl * ictx) { (void)ictx; return ntapi->tt_wait_for_dummy_event(); diff --git a/src/console/ptyc_console_reader.c b/src/console/ptyc_console_reader.c index 0ce4900..75547b5 100644 --- a/src/console/ptyc_console_reader.c +++ b/src/console/ptyc_console_reader.c @@ -114,7 +114,7 @@ static size_t ptyc_translate_event( return 0; } -int ptyc_console_reader(struct ptyc_driver_ctx_impl * ictx) +int __stdcall ptyc_console_reader(struct ptyc_driver_ctx_impl * ictx) { int32_t status; void * hwait; diff --git a/src/console/ptyc_console_writer.c b/src/console/ptyc_console_writer.c index 046e675..63384c0 100644 --- a/src/console/ptyc_console_writer.c +++ b/src/console/ptyc_console_writer.c @@ -16,7 +16,7 @@ static ptyc_term_handler ptyc_screen_handler; static ptyc_term_handler ptyc_ctrl_handler; static ptyc_term_handler ptyc_flush_screen_buffer; -int ptyc_console_writer(struct ptyc_driver_ctx_impl * ictx) +int __stdcall ptyc_console_writer(struct ptyc_driver_ctx_impl * ictx) { int32_t status; nt_iosb iosb; |