author | aquadran <aquadran> | 2007-06-10 06:17:47 (UTC) |
---|---|---|
committer | aquadran <aquadran> | 2007-06-10 06:17:47 (UTC) |
commit | 85dfcf4f5e7fb28990606b83a02043af19a8c15d (patch) (unidiff) | |
tree | 7a735f00f6f4a6493ea3ebd990d095c3c720db90 /libopie2/opienet | |
parent | e87affd3d9a8a7d705d0dc3d1a4905e1e3f902d0 (diff) | |
download | opie-85dfcf4f5e7fb28990606b83a02043af19a8c15d.zip opie-85dfcf4f5e7fb28990606b83a02043af19a8c15d.tar.gz opie-85dfcf4f5e7fb28990606b83a02043af19a8c15d.tar.bz2 |
fix missing types for include for latest kernel
-rw-r--r-- | libopie2/opienet/onetwork.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index b13c7a3..370ad59 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h | |||
@@ -1,95 +1,96 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | =. Copyright (C) 2003-2005 by Michael 'Mickey' Lauer <mickey@Vanille.de> | 3 | =. Copyright (C) 2003-2005 by Michael 'Mickey' Lauer <mickey@Vanille.de> |
4 | .=l. | 4 | .=l. |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This program is free software; you can | 6 | _;:, .> :=|. This program is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; version 2 of the License. | 10 | - . .-<_> .<> Foundation; version 2 of the License. |
11 | ._= =} : | 11 | ._= =} : |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This program is distributed in the hope that | 13 | .i_,=:_. -<s. This program is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
18 | ..}^=.= = ; Library General Public License for more | 18 | ..}^=.= = ; Library General Public License for more |
19 | ++= -. .` .: details. | 19 | ++= -. .` .: details. |
20 | : = ...= . :.=- | 20 | : = ...= . :.=- |
21 | -. .:....=;==+<; You should have received a copy of the GNU | 21 | -. .:....=;==+<; You should have received a copy of the GNU |
22 | -_. . . )=. = Library General Public License along with | 22 | -_. . . )=. = Library General Public License along with |
23 | -- :-=` this library; see the file COPYING.LIB. | 23 | -- :-=` this library; see the file COPYING.LIB. |
24 | If not, write to the Free Software Foundation, | 24 | If not, write to the Free Software Foundation, |
25 | Inc., 59 Temple Place - Suite 330, | 25 | Inc., 59 Temple Place - Suite 330, |
26 | Boston, MA 02111-1307, USA. | 26 | Boston, MA 02111-1307, USA. |
27 | 27 | ||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifndef ONETWORK_H | 30 | #ifndef ONETWORK_H |
31 | #define ONETWORK_H | 31 | #define ONETWORK_H |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/onetutils.h> | 34 | #include <opie2/onetutils.h> |
35 | #include <opie2/ostation.h> | 35 | #include <opie2/ostation.h> |
36 | 36 | ||
37 | /* QT */ | 37 | /* QT */ |
38 | #include <qvaluelist.h> | 38 | #include <qvaluelist.h> |
39 | #include <qdict.h> | 39 | #include <qdict.h> |
40 | #include <qmap.h> | 40 | #include <qmap.h> |
41 | #include <qobject.h> | 41 | #include <qobject.h> |
42 | #include <qhostaddress.h> | 42 | #include <qhostaddress.h> |
43 | 43 | ||
44 | /* STD */ | 44 | /* STD */ |
45 | // hacky workarounds until we have a true user space wireless.h | 45 | // hacky workarounds until we have a true user space wireless.h |
46 | #include <net/if.h> | 46 | #include <net/if.h> |
47 | #define _LINUX_IF_H | 47 | #define _LINUX_IF_H |
48 | #include <linux/types.h> | ||
48 | #include <linux/wireless.h> | 49 | #include <linux/wireless.h> |
49 | #ifndef IW_MAX_PRIV_DEF | 50 | #ifndef IW_MAX_PRIV_DEF |
50 | #define IW_MAX_PRIV_DEF 128 | 51 | #define IW_MAX_PRIV_DEF 128 |
51 | #endif | 52 | #endif |
52 | 53 | ||
53 | namespace Opie { | 54 | namespace Opie { |
54 | namespace Net { | 55 | namespace Net { |
55 | class ONetworkInterface; | 56 | class ONetworkInterface; |
56 | class OWirelessNetworkInterface; | 57 | class OWirelessNetworkInterface; |
57 | class OChannelHopper; | 58 | class OChannelHopper; |
58 | class OMonitoringInterface; | 59 | class OMonitoringInterface; |
59 | 60 | ||
60 | /*====================================================================================== | 61 | /*====================================================================================== |
61 | * ONetwork | 62 | * ONetwork |
62 | *======================================================================================*/ | 63 | *======================================================================================*/ |
63 | 64 | ||
64 | /** | 65 | /** |
65 | * @brief A container class for all network interfaces | 66 | * @brief A container class for all network interfaces |
66 | * | 67 | * |
67 | * This class provides access to all available network interfaces of your computer. | 68 | * This class provides access to all available network interfaces of your computer. |
68 | * | 69 | * |
69 | * @author Michael 'Mickey' Lauer <mickey@vanille.de> | 70 | * @author Michael 'Mickey' Lauer <mickey@vanille.de> |
70 | */ | 71 | */ |
71 | class ONetwork : public QObject | 72 | class ONetwork : public QObject |
72 | { | 73 | { |
73 | Q_OBJECT | 74 | Q_OBJECT |
74 | 75 | ||
75 | public: | 76 | public: |
76 | typedef QDict<ONetworkInterface> InterfaceMap; | 77 | typedef QDict<ONetworkInterface> InterfaceMap; |
77 | typedef QDictIterator<ONetworkInterface> InterfaceIterator; | 78 | typedef QDictIterator<ONetworkInterface> InterfaceIterator; |
78 | 79 | ||
79 | public: | 80 | public: |
80 | /** | 81 | /** |
81 | * @returns the number of available interfaces | 82 | * @returns the number of available interfaces |
82 | */ | 83 | */ |
83 | int count() const; | 84 | int count() const; |
84 | /** | 85 | /** |
85 | * @returns a pointer to the (one and only) @ref ONetwork instance. | 86 | * @returns a pointer to the (one and only) @ref ONetwork instance. |
86 | */ | 87 | */ |
87 | static ONetwork* instance(); | 88 | static ONetwork* instance(); |
88 | /** | 89 | /** |
89 | * @returns an iterator usable for iterating through all network interfaces. | 90 | * @returns an iterator usable for iterating through all network interfaces. |
90 | */ | 91 | */ |
91 | InterfaceIterator iterator() const; | 92 | InterfaceIterator iterator() const; |
92 | /** | 93 | /** |
93 | * @returns true, if the @a interface is present. | 94 | * @returns true, if the @a interface is present. |
94 | */ | 95 | */ |
95 | bool isPresent( const char* interface ) const; | 96 | bool isPresent( const char* interface ) const; |