indentation
[oweals/gnunet.git] / src / transport / gnunet-transport-wlan-helper.h
1 /*
2      This file is part of GNUnet.
3      (C) 2009 Christian Grothoff (and other contributing authors)
4
5      GNUnet is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published
7      by the Free Software Foundation; either version 3, or (at your
8      option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License
16      along with GNUnet; see the file COPYING.  If not, write to the
17      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18      Boston, MA 02111-1307, USA.
19 */
20
21 /**
22  * @file transport/gnunet-transport-wlan-helper.h
23  * @brief common internal definitions for the wlan mediator
24  * @author David Brodski
25  */
26
27 #ifndef gnunet_wlan_H
28 #define gnunet_wlan_H
29
30 /*
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <errno.h>
34 #include <resolv.h>
35 #include <string.h>
36 #include <utime.h>
37 #include <unistd.h>
38 #include <getopt.h>
39 #include <pcap.h>*/
40 //#include <endian.h>
41
42 /*
43 typedef unsigned int u32;
44 typedef unsigned short u16;
45 typedef unsigned char u8;
46 typedef u32 __le32;
47 */
48 /*
49 #if __BYTE_ORDER == __LITTLE_ENDIAN
50 #define le16_to_cpu(x) (x)
51 #define le32_to_cpu(x) (x)
52 #else
53 #define le16_to_cpu(x) ((((x)&0xff)<<8)|(((x)&0xff00)>>8))
54 #define le32_to_cpu(x) \
55 ((((x)&0xff)<<24)|(((x)&0xff00)<<8)|(((x)&0xff0000)>>8)|(((x)&0xff000000)>>24))
56 #endif
57 */
58 #define unlikely(x) (x)
59
60 #define FIFO_FILE1       "/tmp/test-transport/api-wlan-p1/WLAN_FIFO_in"
61 #define FIFO_FILE2       "/tmp/test-transport/api-wlan-p1/WLAN_FIFO_out"
62 #define MAXLINE         4096
63
64 extern int closeprog;
65
66 struct sendbuf
67 {
68   unsigned int pos;
69   unsigned int size;
70   char buf[MAXLINE * 2];
71 };
72
73
74 #endif /* gnunet_wlan_H */