Rename Android and EGL files
[freeglut] / src / android / fg_input_devices_android.c
1 /*
2  * freeglut_input_devices_android.c
3  *
4  * Handles miscellaneous input devices via direct serial-port access.
5  *
6  * Written by Joe Krahn <krahn@niehs.nih.gov> 2005
7  * Copyright (c) 2005 Stephen J. Baker. All Rights Reserved.
8  * Copied for Platform code by Evan Felix <karcaw at gmail.com>
9  * Copyright 2012 (C)  Sylvain Beucler
10  * Creation date: Thur Feb 2 2012
11  *
12  * Permission is hereby granted, free of charge, to any person obtaining a
13  * copy of this software and associated documentation files (the "Software"),
14  * to deal in the Software without restriction, including without limitation
15  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16  * and/or sell copies of the Software, and to permit persons to whom the
17  * Software is furnished to do so, subject to the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be included
20  * in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
25  * PAWEL W. OLSZTA OR STEPHEN J. BAKER BE LIABLE FOR ANY CLAIM, DAMAGES OR
26  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28  * DEALINGS IN THE SOFTWARE.
29  */
30
31 #include <stdio.h>
32 typedef struct _serialport SERIALPORT;
33
34 /*
35  * Try initializing the input device(s)
36  */
37 void fgPlatformRegisterDialDevice ( const char *dial_device )
38 {
39   fprintf(stderr, "fgPlatformRegisterDialDevice: STUB\n");
40 }
41
42 SERIALPORT *serial_open ( const char *device )
43 {
44   fprintf(stderr, "serial_open: STUB\n");
45   return NULL;
46 }
47
48 void serial_close(SERIALPORT *port)
49 {
50   fprintf(stderr, "serial_close: STUB\n");
51 }
52
53 int serial_getchar(SERIALPORT *port)
54 {
55   fprintf(stderr, "serial_getchar: STUB\n");
56   return EOF;
57 }
58
59 int serial_putchar(SERIALPORT *port, unsigned char ch)
60 {
61   fprintf(stderr, "serial_putchar: STUB\n");
62   return 0;
63 }
64
65 void serial_flush ( SERIALPORT *port )
66 {
67   fprintf(stderr, "serial_flush: STUB\n");
68 }