7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Copyright (C) 1999, 2000 Hugh Blemings & Pavel JanÃk ml.
11 Released under the terms of the GNU GPL, see file COPYING for more details.
14 Revision 1.1.1.4 2002/04/03 00:08:20 short
15 Found in "gnokii-working" directory, some November-patches version
17 Revision 1.2 2001/08/20 23:27:37 pkot
18 Add hardware shakehand to the link layer (Manfred Jonsson)
20 Revision 1.1 2001/02/21 19:57:12 chris
21 More fiddling with the directory layout
26 #ifndef __devices_unixserial_h
27 #define __devices_unixserial_h
31 /* FIXME: this should be solved in config.h in 0.4.0 */
33 typedef void * __ptr_t;
40 int serial_open(__const char *__file, int __oflag);
41 int serial_close(int __fd);
43 int serial_opendevice(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake);
45 void serial_setdtrrts(int __fd, int __dtr, int __rts);
46 bool serial_changespeed(int __fd, int __speed);
48 size_t serial_read(int __fd, __ptr_t __buf, size_t __nbytes);
49 size_t serial_write(int __fd, __const __ptr_t __buf, size_t __n);
51 int serial_select(int fd, struct timeval *timeout);
53 #endif /* __devices_unixserial_h */