Blame src/internal/ntapi_pty.h

dd89bb
/********************************************************/
dd89bb
/*  ntapi: Native API core library                      */
4256e2
/*  Copyright (C) 2013--2016  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 {
dd89bb
	nt_sync_block	sync[2];
dd89bb
	void *		addr;
dd89bb
	size_t		size;
dd89bb
	void *		hport;
dd89bb
	void *		hpty;
dd89bb
	void *		section;
dd89bb
	void *		section_addr;
dd89bb
	size_t		section_size;
dd89bb
	nt_guid		guid;
dd89bb
	nt_luid		luid;
dd89bb
	uint32_t	access;
dd89bb
	uint32_t	flags;
dd89bb
	uint32_t	share;
dd89bb
	uint32_t	options;
dd89bb
	nt_iosb		iosb;
dd89bb
} nt_pty;
dd89bb
dd89bb
#endif