dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_flightgear.h
Go to the documentation of this file.
1 
10 /*
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  * for more details.
20  *
21  * You should have received a copy of the GNU General Public License along
22  * with this program; if not, see <http://www.gnu.org/licenses/>
23  *
24  * Additional note on redistribution: The copyright and license notices above
25  * must be maintained in each individual source file that is a derivative work
26  * of this source file; otherwise redistribution is prohibited.
27  */
28 
29 #ifndef PIOS_FLIGHTGEAR_H
30 #define PIOS_FLIGHTGEAR_H
31 
32 #include <pios.h>
33 #include <stdio.h>
34 #include <pthread.h>
35 
36 #if !(defined(_WIN32) || defined(WIN32) || defined(__MINGW32__))
37 #include <sys/socket.h>
38 #include <arpa/inet.h>
39 #include <netinet/in.h>
40 #include <netinet/udp.h>
41 #else
42 #include <ws2tcpip.h>
43 #endif
44 
45 #include <stdlib.h>
46 #include <string.h>
47 #include <unistd.h>
48 #include <fcntl.h>
49 
51 
52 int32_t PIOS_FLIGHTGEAR_Init(flightgear_dev_t *dev,
53  uint16_t port);
54 
55 #endif /* PIOS_TCP_PRIV_H */
Main PiOS header to include all the compiled in PiOS options.
int32_t PIOS_FLIGHTGEAR_Init(flightgear_dev_t *dev, uint16_t port)
struct flightgear_dev * flightgear_dev_t