aboutsummaryrefslogtreecommitdiffstats
path: root/src/tty.h
blob: 51634edf713fa34a4f8916e6097b2210caee4491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * tty.h:
 *
 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
 * All rights reserved.
 *
 */

/*
 * $Id$
 */

/*
 * $Log$
 * Revision 1.3  2008/02/09 15:47:28  james
 * *** empty log message ***
 *
 * Revision 1.2  2008/02/07 00:43:27  james
 * *** empty log message ***
 *
 * Revision 1.1  2008/02/06 20:26:58  james
 * *** empty log message ***
 *
 */

#ifndef __TTY_H__
#define __TTY_H__

#define TTY_SIGNATURE \
	char name[1024]; \
	void (*close)(struct TTY_struct *); \
	int (*recv)(struct TTY_struct *,void *buf,int len); \
	int (*xmit)(struct TTY_struct *,void *buf,int len); \
	int rfd; \
	int wfd

typedef struct TTY_struct
{
  TTY_SIGNATURE;
} TTY;

#endif /* __TTY_H__ */