summaryrefslogtreecommitdiff
authorsimon <simon>2003-04-20 10:19:39 (UTC)
committer simon <simon>2003-04-20 10:19:39 (UTC)
commitb2583563a61e1ac1d9207fb3c008443a5fc7dc3c (patch) (side-by-side diff)
treebd9543d81221f036aceed53e666ae1a43e26eb84
parente24ed721e823232876a266cd78cd7341675b4378 (diff)
downloadopie-b2583563a61e1ac1d9207fb3c008443a5fc7dc3c.zip
opie-b2583563a61e1ac1d9207fb3c008443a5fc7dc3c.tar.gz
opie-b2583563a61e1ac1d9207fb3c008443a5fc7dc3c.tar.bz2
- removed those:
-#ifdef QT_NO_DEBUG -inline -#endif <some method here not marked inline in the header file> it makes little sense to inline a method in the .cpp file for non-debug builds, apart from that it causes the method not to be emitted for non-debug builds, causing undefined references in apps referencing them
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetutils.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/libopie2/opienet/onetutils.cpp b/libopie2/opienet/onetutils.cpp
index 236f108..e05efc2 100644
--- a/libopie2/opienet/onetutils.cpp
+++ b/libopie2/opienet/onetutils.cpp
@@ -125,94 +125,82 @@ QString OMacAddress::toString( bool substitute ) const
QString OMacAddress::manufacturer() const
{
return OManufacturerDB::instance()->lookup( toString() );
}
bool operator==( const OMacAddress &m1, const OMacAddress &m2 )
{
return memcmp( &m1._bytes, &m2._bytes, 6 ) == 0;
}
/*======================================================================================
* OHostAddress
*======================================================================================*/
/*======================================================================================
* OPrivateIOCTL
*======================================================================================*/
OPrivateIOCTL::OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs )
:QObject( parent, name ), _ioctl( cmd ), _getargs( getargs ), _setargs( setargs )
{
}
OPrivateIOCTL::~OPrivateIOCTL()
{
}
-#ifdef QT_NO_DEBUG
-inline
-#endif
int OPrivateIOCTL::numberGetArgs() const
{
return _getargs & IW_PRIV_SIZE_MASK;
}
-#ifdef QT_NO_DEBUG
-inline
-#endif
int OPrivateIOCTL::typeGetArgs() const
{
return _getargs & IW_PRIV_TYPE_MASK >> 12;
}
-#ifdef QT_NO_DEBUG
-inline
-#endif
int OPrivateIOCTL::numberSetArgs() const
{
return _setargs & IW_PRIV_SIZE_MASK;
}
-#ifdef QT_NO_DEBUG
-inline
-#endif
int OPrivateIOCTL::typeSetArgs() const
{
return _setargs & IW_PRIV_TYPE_MASK >> 12;
}
void OPrivateIOCTL::invoke() const
{
( (OWirelessNetworkInterface*) parent() )->wioctl( _ioctl );
}
void OPrivateIOCTL::setParameter( int num, u_int32_t value )
{
u_int32_t* arglist = (u_int32_t*) &( (OWirelessNetworkInterface*) parent() )->_iwr.u.name;
arglist[num] = value;
}
/*======================================================================================
* assorted functions
*======================================================================================*/
void dumpBytes( const unsigned char* data, int num )
{
printf( "Dumping %d bytes @ %0x", num, data );
printf( "-------------------------------------------\n" );
for ( int i = 0; i < num; ++i )
{
printf( "%02x ", data[i] );
if ( !((i+1) % 32) ) printf( "\n" );
}