2 This file is part of GNUnet.
3 (C) 2009 Christian Grothoff (and other contributing authors)
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.
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.
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.
22 * @file transport/gnunet-transport-wlan-helper.h
23 * @brief common internal definitions for the wlan mediator
24 * @author David Brodski
43 typedef unsigned int u32;
44 typedef unsigned short u16;
45 typedef unsigned char u8;
49 #if __BYTE_ORDER == __LITTLE_ENDIAN
50 #define le16_to_cpu(x) (x)
51 #define le32_to_cpu(x) (x)
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))
58 #define unlikely(x) (x)
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"
70 unsigned char buf[MAXLINE * 2];
74 #endif /* gnunet_wlan_H */