From 4695532805c24af1965ef1407720c8db086e14b3 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 5 Jul 2016 16:51:29 -0400 Subject: driver context: added ptyc_set_status(). --- src/internal/ptycon_status_impl.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/internal/ptycon_status_impl.h (limited to 'src/internal') 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 +#include +#include + +static int ptyc_set_status(struct ptyc_driver_ctx * dctx, int32_t status) +{ + dctx->status = status; + + return (status == NT_STATUS_SUCCESS) + ? 0 : -1; +} + +#endif -- cgit v1.2.3