summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--project/headers.mk1
-rw-r--r--src/internal/ptycon_status_impl.h16
2 files changed, 17 insertions, 0 deletions
diff --git a/project/headers.mk b/project/headers.mk
index ed7a838..ed442e4 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -8,5 +8,6 @@ INTERNAL_HEADERS = \
$(PROJECT_DIR)/src/internal/$(PACKAGE)_init_impl.h \
$(PROJECT_DIR)/src/internal/$(PACKAGE)_memfn_impl.h \
$(PROJECT_DIR)/src/internal/$(PACKAGE)_nolibc_impl.h \
+ $(PROJECT_DIR)/src/internal/$(PACKAGE)_status_impl.h \
ALL_HEADERS = $(API_HEADERS) $(INTERNAL_HEADERS)
diff --git a/src/internal/ptycon_status_impl.h b/src/internal/ptycon_status_impl.h
new file mode 100644
index 0000000..5ac5a22
--- /dev/null
+++ b/src/internal/ptycon_status_impl.h
@@ -0,0 +1,16 @@
+#ifndef PTYCON_STATUS_IMPL_H
+#define PTYCON_STATUS_IMPL_H
+
+#include <psxtypes/psxtypes.h>
+#include <ntapi/ntapi.h>
+#include <ptycon/ptycon.h>
+
+static int ptyc_set_status(struct ptyc_driver_ctx * dctx, int32_t status)
+{
+ dctx->status = status;
+
+ return (status == NT_STATUS_SUCCESS)
+ ? 0 : -1;
+}
+
+#endif