diff options
author | midipix <writeonce@midipix.org> | 2016-07-05 16:51:29 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:24 -0400 |
commit | 4695532805c24af1965ef1407720c8db086e14b3 (patch) | |
tree | 83633b9ba636f4deedd1c5cda2c04142965eca02 /src | |
parent | cfc59b1713a9d9fc9a7e6f51952d2b584a3842e4 (diff) | |
download | ptycon-4695532805c24af1965ef1407720c8db086e14b3.tar.bz2 ptycon-4695532805c24af1965ef1407720c8db086e14b3.tar.xz |
driver context: added ptyc_set_status().
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/ptycon_status_impl.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 |