Found in "gnokii-working" directory, some November-patches version
[gnokii.git] / include / devices / unixirda.h
1 /*
2  * $Id$
3  *
4  * G N O K I I
5  *
6  * A Linux/Unix toolset and driver for Nokia mobile phones.
7  *
8  * Copyright (C) 1999, 2000 Hugh Blemings & Pavel Janík ml.
9  * Copyright (C) 2000-2001  Marcel Holtmann <marcel@holtmann.org>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24  *
25  * $Log$
26  * Revision 1.1.1.3  2002/04/03 00:08:20  short
27  * Found in "gnokii-working" directory, some November-patches version
28  *
29  * Revision 1.2  2001/11/08 16:49:20  pkot
30  * Cleanups
31  *
32  * Revision 1.1  2001/02/21 19:57:11  chris
33  * More fiddling with the directory layout
34  *
35  * Revision 1.4  2001/02/20 21:55:12  pkot
36  * Small #include updates
37  *
38  * Revision 1.3  2001/02/06 21:15:37  chris
39  * Preliminary irda support for 7110 etc.  Not well tested!
40  *
41  * Revision 1.2  2001/02/06 15:15:25  pkot
42  * FreeBSD unixirda.h fix (Panagiotis Astithas)
43  *
44  * Revision 1.1  2001/02/03 23:56:18  chris
45  * Start of work on irda support (now we just need fbus-irda.c!)
46  * Proper unicode support in 7110 code (from pkot)
47  *
48  */
49
50 #ifndef __unix_irda_h_
51 #define __unix_irda_h_
52
53 #include <stdlib.h>
54 #include <unistd.h>
55 #include <stdio.h>
56 #include <fcntl.h>
57 #include <errno.h>
58 #include <string.h>
59 #include <sys/time.h>
60 #include <sys/socket.h>
61
62 #include "linuxirda.h"
63 #include "misc.h"
64
65 int irda_open(void);
66 int irda_close(int fd);
67 int irda_write(int __fd, __const __ptr_t __bytes, int __size);
68 int irda_read(int __fd, __ptr_t __bytes, int __size);
69 int irda_select(int fd, struct timeval *timeout);
70
71 #endif