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.1.12.2 2001/11/27 23:34:48 short
15 Update: orig2001_11_27_05_17 -> orig2001_11_27_22_58
17 Revision 1.1.1.1.8.1 2001/11/27 23:06:09 short
18 Update: orig2001_11_27_05_17 -> orig2001_11_27_22_58
20 Revision 1.1.1.1.2.1 2001/11/27 22:48:37 short
21 Update: orig2001_11_27_05_17 -> orig2001_11_27_22_58
23 Revision 1.1.1.2 2001/11/27 22:01:28 short
24 :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Tue Nov 27 22:58 CET 2001
26 Revision 1.3 2001/11/27 12:19:01 pkot
27 Cleanup, indentation, ANSI complaint preprocesor symbols (Jan Kratochvil, me)
29 Revision 1.2 2001/08/20 23:27:37 pkot
30 Add hardware shakehand to the link layer (Manfred Jonsson)
32 Revision 1.1 2001/02/21 19:57:12 chris
33 More fiddling with the directory layout
37 #ifndef __devices_unixserial_h
38 #define __devices_unixserial_h
42 /* FIXME: this should be solved in config.h in 0.4.0 */
43 # define __const const
44 typedef void * __ptr_t;
50 #include "gsm-error.h"
52 int serial_open(__const char *__file, int __oflag);
53 int serial_close(int __fd);
55 int serial_opendevice(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake);
57 void serial_setdtrrts(int __fd, int __dtr, int __rts);
58 GSM_Error serial_changespeed(int __fd, int __speed);
60 size_t serial_read(int __fd, __ptr_t __buf, size_t __nbytes);
61 size_t serial_write(int __fd, __const __ptr_t __buf, size_t __n);
63 int serial_select(int fd, struct timeval *timeout);
65 #endif /* __devices_unixserial_h */