Blame src/internal/ntapi_pty.h

dd89bb
/********************************************************/
dd89bb
/*  ntapi: Native API core library                      */
59d585
/*  Copyright (C) 2013--2021  Z. Gilboa                 */
dd89bb
/*  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  */
dd89bb
/********************************************************/
dd89bb
dd89bb
#ifndef ___NTAPI_PTY_H_
dd89bb
#define ___NTAPI_PTY_H_
dd89bb
dd89bb
#include <psxtypes/psxtypes.h>
dd89bb
#include <ntapi/nt_status.h>
dd89bb
#include <ntapi/nt_guid.h>
dd89bb
#include <ntapi/nt_sync.h>
dd89bb
#include <ntapi/nt_tty.h>
dd89bb
dd89bb
#define __PTY_READ	0
dd89bb
#define __PTY_WRITE	1
dd89bb
dd89bb
typedef struct nt_pty_context {
ae5d60
	int32_t volatile        lock[2];
ae5d60
	void *                  addr;
ae5d60
	size_t                  size;
ae5d60
	void *                  hport;
ae5d60
	void *                  hpty;
ae5d60
	void *                  section;
ae5d60
	void *                  section_addr;
ae5d60
	size_t                  section_size;
ae5d60
	nt_guid                 guid;
ae5d60
	nt_luid                 luid;
ae5d60
	uint32_t                access;
ae5d60
	uint32_t                flags;
ae5d60
	uint32_t                share;
ae5d60
	uint32_t                options;
ae5d60
	nt_iosb                 iosb;
dd89bb
} nt_pty;
dd89bb
dd89bb
#endif