author | mickeyl <mickeyl> | 2003-10-23 17:51:00 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-23 17:51:00 (UTC) |
commit | a9eddd4cd428dd844d8693e98e4df8e365e75da8 (patch) (unidiff) | |
tree | 21b5957143ad30b0efb505694505985ca65d3850 /libopie2/opienet/onetutils.h | |
parent | a61c014e1fb43e36aa7454ce4b3cb9a7a706c6fa (diff) | |
download | opie-a9eddd4cd428dd844d8693e98e4df8e365e75da8.zip opie-a9eddd4cd428dd844d8693e98e4df8e365e75da8.tar.gz opie-a9eddd4cd428dd844d8693e98e4df8e365e75da8.tar.bz2 |
misc changes
Diffstat (limited to 'libopie2/opienet/onetutils.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opienet/onetutils.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libopie2/opienet/onetutils.h b/libopie2/opienet/onetutils.h index 18731ba..541c5ab 100644 --- a/libopie2/opienet/onetutils.h +++ b/libopie2/opienet/onetutils.h | |||
@@ -75,27 +75,28 @@ class OMacAddress | |||
75 | 75 | ||
76 | }; | 76 | }; |
77 | 77 | ||
78 | bool operator==( const OMacAddress &m1, const OMacAddress &m2 ); | 78 | bool operator==( const OMacAddress &m1, const OMacAddress &m2 ); |
79 | 79 | ||
80 | 80 | ||
81 | /*====================================================================================== | 81 | /*====================================================================================== |
82 | * OHostAddress | 82 | * OHostAddress |
83 | *======================================================================================*/ | 83 | *======================================================================================*/ |
84 | 84 | ||
85 | class OHostAddress : public QHostAddress | 85 | class OHostAddress : public QHostAddress |
86 | { | 86 | { |
87 | public: | 87 | /*public: |
88 | OHostAddress(); | 88 | OHostAddress(); |
89 | ~OHostAddress(); | 89 | ~OHostAddress(); |
90 | */ | ||
90 | }; | 91 | }; |
91 | 92 | ||
92 | 93 | ||
93 | /*====================================================================================== | 94 | /*====================================================================================== |
94 | * OPrivateIOCTL | 95 | * OPrivateIOCTL |
95 | *======================================================================================*/ | 96 | *======================================================================================*/ |
96 | 97 | ||
97 | class OPrivateIOCTL : public QObject | 98 | class OPrivateIOCTL : public QObject |
98 | { | 99 | { |
99 | public: | 100 | public: |
100 | OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs ); | 101 | OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs ); |
101 | ~OPrivateIOCTL(); | 102 | ~OPrivateIOCTL(); |
@@ -111,27 +112,27 @@ class OPrivateIOCTL : public QObject | |||
111 | 112 | ||
112 | private: | 113 | private: |
113 | u_int32_t _ioctl; | 114 | u_int32_t _ioctl; |
114 | u_int16_t _getargs; | 115 | u_int16_t _getargs; |
115 | u_int16_t _setargs; | 116 | u_int16_t _setargs; |
116 | 117 | ||
117 | }; | 118 | }; |
118 | 119 | ||
119 | /*====================================================================================== | 120 | /*====================================================================================== |
120 | * Miscellaneous | 121 | * Miscellaneous |
121 | *======================================================================================*/ | 122 | *======================================================================================*/ |
122 | 123 | ||
123 | /* dump bytes */ | ||
124 | |||
125 | void dumpBytes( const unsigned char* data, int num ); | 124 | void dumpBytes( const unsigned char* data, int num ); |
125 | QString modeToString( int ); | ||
126 | int stringToMode( const QString& ); | ||
126 | 127 | ||
127 | /* Network to host order macros */ | 128 | /* Network to host order macros */ |
128 | 129 | ||
129 | #ifdef LBL_ALIGN | 130 | #ifdef LBL_ALIGN |
130 | #define EXTRACT_16BITS(p) \ | 131 | #define EXTRACT_16BITS(p) \ |
131 | ((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 0) << 8 | \ | 132 | ((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 0) << 8 | \ |
132 | (u_int16_t)*((const u_int8_t *)(p) + 1))) | 133 | (u_int16_t)*((const u_int8_t *)(p) + 1))) |
133 | #define EXTRACT_32BITS(p) \ | 134 | #define EXTRACT_32BITS(p) \ |
134 | ((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 24 | \ | 135 | ((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 24 | \ |
135 | (u_int32_t)*((const u_int8_t *)(p) + 1) << 16 | \ | 136 | (u_int32_t)*((const u_int8_t *)(p) + 1) << 16 | \ |
136 | (u_int32_t)*((const u_int8_t *)(p) + 2) << 8 | \ | 137 | (u_int32_t)*((const u_int8_t *)(p) + 2) << 8 | \ |
137 | (u_int32_t)*((const u_int8_t *)(p) + 3))) | 138 | (u_int32_t)*((const u_int8_t *)(p) + 3))) |