author | schurig <schurig> | 2003-06-04 11:53:19 (UTC) |
---|---|---|
committer | schurig <schurig> | 2003-06-04 11:53:19 (UTC) |
commit | e23848abe917d689ee9d8f7b78ff5e5047a3ed43 (patch) (unidiff) | |
tree | c23bf1cbb116ad2f8e523746867cf0494aa4af89 | |
parent | df76591a8ee920c6549bc55b026ab66926917667 (diff) | |
download | opie-e23848abe917d689ee9d8f7b78ff5e5047a3ed43.zip opie-e23848abe917d689ee9d8f7b78ff5e5047a3ed43.tar.gz opie-e23848abe917d689ee9d8f7b78ff5e5047a3ed43.tar.bz2 |
enable compilation
-rw-r--r-- | libopie2/opienet/onetwork.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index eb9d506..cfb999d 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h | |||
@@ -17,78 +17,79 @@ | |||
17 | .i_,=:_. -<s. This program is distributed in the hope that | 17 | .i_,=:_. -<s. This program is distributed in the hope that |
18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
19 | : .. .:, . . . without even the implied warranty of | 19 | : .. .:, . . . without even the implied warranty of |
20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
22 | ..}^=.= = ; Library General Public License for more | 22 | ..}^=.= = ; Library General Public License for more |
23 | ++= -. .` .: details. | 23 | ++= -. .` .: details. |
24 | : = ...= . :.=- | 24 | : = ...= . :.=- |
25 | -. .:....=;==+<; You should have received a copy of the GNU | 25 | -. .:....=;==+<; You should have received a copy of the GNU |
26 | -_. . . )=. = Library General Public License along with | 26 | -_. . . )=. = Library General Public License along with |
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #ifndef ONETWORK_H | 34 | #ifndef ONETWORK_H |
35 | #define ONETWORK_H | 35 | #define ONETWORK_H |
36 | 36 | ||
37 | /* OPIE */ | 37 | /* OPIE */ |
38 | 38 | ||
39 | #include <opie2/onetutils.h> | 39 | #include <opie2/onetutils.h> |
40 | 40 | ||
41 | /* QT */ | 41 | /* QT */ |
42 | 42 | ||
43 | #include <qvaluelist.h> | 43 | #include <qvaluelist.h> |
44 | #include <qdict.h> | 44 | #include <qdict.h> |
45 | #include <qmap.h> | 45 | #include <qmap.h> |
46 | #include <qobject.h> | 46 | #include <qobject.h> |
47 | #include <qhostaddress.h> | 47 | #include <qhostaddress.h> |
48 | 48 | ||
49 | #ifndef IFNAMSIZ | ||
50 | #define IFNAMSIZ 16 | ||
51 | #endif | ||
52 | #ifndef IW_MAX_PRIV_DEF | ||
53 | #define IW_MAX_PRIV_DEF 128 | ||
54 | #endif | ||
55 | |||
56 | // ML: Yeah, I hate to include kernel headers, but it's necessary here | 49 | // ML: Yeah, I hate to include kernel headers, but it's necessary here |
57 | // ML: Here comes an ugly hack to prevent <linux/wireless.h> including <linux/if.h> | 50 | // ML: Here comes an ugly hack to prevent <linux/wireless.h> including <linux/if.h> |
58 | // ML: which conflicts with the user header <net/if.h> | 51 | // ML: which conflicts with the user header <net/if.h> |
59 | // ML: We really need a user header for the Wireless Extensions, something like <net/wireless.h> | 52 | // ML: We really need a user header for the Wireless Extensions, something like <net/wireless.h> |
60 | // ML: I will drop Jean a mail on that subject | 53 | // ML: I will drop Jean a mail on that subject |
61 | 54 | ||
62 | #include <net/if.h> | 55 | #include <net/if.h> |
56 | |||
57 | #ifndef IFNAMSIZ | ||
58 | #define IFNAMSIZ 16 | ||
59 | #endif | ||
60 | #ifndef IW_MAX_PRIV_DEF | ||
61 | #define IW_MAX_PRIV_DEF 128 | ||
62 | #endif | ||
63 | |||
63 | #define _LINUX_IF_H | 64 | #define _LINUX_IF_H |
64 | #include <linux/wireless.h> | 65 | #include <linux/wireless.h> |
65 | 66 | ||
66 | class ONetworkInterface; | 67 | class ONetworkInterface; |
67 | class OWirelessNetworkInterface; | 68 | class OWirelessNetworkInterface; |
68 | class OChannelHopper; | 69 | class OChannelHopper; |
69 | class OMonitoringInterface; | 70 | class OMonitoringInterface; |
70 | 71 | ||
71 | /*====================================================================================== | 72 | /*====================================================================================== |
72 | * ONetwork | 73 | * ONetwork |
73 | *======================================================================================*/ | 74 | *======================================================================================*/ |
74 | 75 | ||
75 | /** | 76 | /** |
76 | * @brief A container class for all network interfaces | 77 | * @brief A container class for all network interfaces |
77 | * | 78 | * |
78 | * This class provides access to all available network interfaces of your computer. | 79 | * This class provides access to all available network interfaces of your computer. |
79 | * | 80 | * |
80 | * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | 81 | * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> |
81 | */ | 82 | */ |
82 | class ONetwork : public QObject | 83 | class ONetwork : public QObject |
83 | { | 84 | { |
84 | Q_OBJECT | 85 | Q_OBJECT |
85 | 86 | ||
86 | public: | 87 | public: |
87 | typedef QDict<ONetworkInterface> InterfaceMap; | 88 | typedef QDict<ONetworkInterface> InterfaceMap; |
88 | typedef QDictIterator<ONetworkInterface> InterfaceIterator; | 89 | typedef QDictIterator<ONetworkInterface> InterfaceIterator; |
89 | 90 | ||
90 | public: | 91 | public: |
91 | /** | 92 | /** |
92 | * @returns the number of available interfaces | 93 | * @returns the number of available interfaces |
93 | */ | 94 | */ |
94 | int count() const; | 95 | int count() const; |