summaryrefslogtreecommitdiffhomepage
path: root/src/internal/ptycon_status_impl.h
blob: 5ac5a22a62ed3c25bf6fcec6debeac1a792b3a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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