1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 5                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 2009 Melanie Rhianna Lewis                             |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.0 of the PHP license,       |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.php.net/license/3_01.txt.                                 |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Author: Melanie Rhianna Lewis <cyberspice@php.net>                   |
16    +----------------------------------------------------------------------+
17  */
18 
19 #ifndef PHP_DIO_COMMON_DATA_H_
20 #define PHP_DIO_COMMON_DATA_H_
21 
22 /* This is the data structure 'base class'.  It is common data fields used
23  * by all versions of DIO.
24  */
25 typedef struct _php_dio_stream_data {
26 	/* Stream type */
27 	int stream_type;
28 	/* Stream options */
29 	int end_of_file;
30 #ifdef DIO_HAS_FILEPERMS
31 	int has_perms;
32 	int perms;
33 #endif
34 #ifdef DIO_NONBLOCK
35 	int is_blocking;
36 	int has_timeout;
37 	long timeout_sec;
38 	long timeout_usec;
39 	int timed_out;
40 #endif
41 	/* Serial options */
42 	long data_rate;
43 	int data_bits;
44 	int stop_bits;
45 	int parity;
46 	int flow_control;
47 	int canonical;
48 } php_dio_stream_data ;
49 
50 #endif /* PHP_DIO_COMMON_DATA_H_ */
51 
52 /*
53  * Local variables:
54  * c-basic-offset: 4
55  * tab-width: 4
56  * End:
57  * vim600: fdm=marker
58  * vim: sw=4 ts=4 noet
59  */
60