7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Released under the terms of the GNU GPL, see file COPYING for more details.
13 #ifndef __devices_unixserial_h
14 #define __devices_unixserial_h
18 /* FIXME: this should be solved in config.h in 0.4.0 */
20 typedef void * __ptr_t;
28 extern int serial_open(__const char *__file, int __oflag);
30 extern int serial_close(int __fd);
32 extern int serial_opendevice(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake);
34 extern void serial_setdtrrts(int __fd, int __dtr, int __rts);
35 extern void serial_changespeed(int __fd, int __speed);
37 extern size_t serial_read(int __fd, __ptr_t __buf, size_t __nbytes);
38 extern size_t serial_write(int __fd, __const __ptr_t __buf, size_t __n);
40 extern int serial_select(int fd, struct timeval *timeout);
42 #endif /* __devices_unixserial_h */