summaryrefslogtreecommitdiff
path: root/libopie2/opienet/onetutils.h
authormickeyl <mickeyl>2003-04-03 14:17:03 (UTC)
committer mickeyl <mickeyl>2003-04-03 14:17:03 (UTC)
commitf62005c53c93148eaa13eac50ea6814a41afb216 (patch) (unidiff)
tree93e7e626205fd9d06b5ac7c29e78be52ce749e5d /libopie2/opienet/onetutils.h
parente9eeb493c75bfe6078f40952e85e859fb71fe970 (diff)
downloadopie-f62005c53c93148eaa13eac50ea6814a41afb216.zip
opie-f62005c53c93148eaa13eac50ea6814a41afb216.tar.gz
opie-f62005c53c93148eaa13eac50ea6814a41afb216.tar.bz2
- ONetworkInterfaces are now QObjects
- add support for private IOCTLS - make buildChannelList() more safe in case of faulty drivers
Diffstat (limited to 'libopie2/opienet/onetutils.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetutils.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libopie2/opienet/onetutils.h b/libopie2/opienet/onetutils.h
index 0dabe8d..6640515 100644
--- a/libopie2/opienet/onetutils.h
+++ b/libopie2/opienet/onetutils.h
@@ -33,14 +33,18 @@
33#define ONETUTILS_H 33#define ONETUTILS_H
34 34
35#include <qdict.h> 35#include <qdict.h>
36#include <qmap.h> 36#include <qmap.h>
37#include <qstring.h> 37#include <qstring.h>
38#include <qhostaddress.h> 38#include <qhostaddress.h>
39#include <qobject.h>
40
41#include <sys/types.h>
39 42
40struct ifreq; 43struct ifreq;
44class OWirelessNetworkInterface;
41 45
42/*====================================================================================== 46/*======================================================================================
43 * OMacAddress 47 * OMacAddress
44 *======================================================================================*/ 48 *======================================================================================*/
45 49
46class OMacAddress 50class OMacAddress
@@ -77,12 +81,33 @@ class OHostAddress : public QHostAddress
77 OHostAddress(); 81 OHostAddress();
78 ~OHostAddress(); 82 ~OHostAddress();
79}; 83};
80 84
81 85
82/*====================================================================================== 86/*======================================================================================
87 * OPrivateIOCTL
88 *======================================================================================*/
89
90class OPrivateIOCTL : public QObject
91{
92 public:
93 OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs );
94 ~OPrivateIOCTL();
95
96 int numberGetArgs() const;
97 int typeGetArgs() const;
98 int numberSetArgs() const;
99 int typeSetArgs() const;
100
101 private:
102 u_int32_t _ioctl;
103 u_int16_t _getargs;
104 u_int16_t _setargs;
105};
106
107 /*======================================================================================
83 * Miscellaneous 108 * Miscellaneous
84 *======================================================================================*/ 109 *======================================================================================*/
85 110
86/* dump bytes */ 111/* dump bytes */
87 112
88void dumpBytes( const unsigned char* data, int num ); 113void dumpBytes( const unsigned char* data, int num );