mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
Really old change: write struct differently in RFCOMM case
This commit is contained in:
parent
018be047ad
commit
51a0825b51
1 changed files with 6 additions and 0 deletions
|
@ -1385,9 +1385,15 @@ void
|
|||
flipBtConnInfoArm268K( unsigned char* out, const BtLibSocketConnectInfoType* in )
|
||||
{
|
||||
write_unaligned32( out + 0, in->remoteDeviceP );
|
||||
#if defined BT_USE_L2CAP
|
||||
write_unaligned16( out + 4, in->data.L2Cap.remotePsm );
|
||||
write_unaligned16( out + 6, in->data.L2Cap.minRemoteMtu );
|
||||
write_unaligned16( out + 8, in->data.L2Cap.localMtu );
|
||||
#elif defined BT_USE_RFCOMM
|
||||
write_unaligned8( out + 4, in->data.RfComm.remoteService );
|
||||
write_unaligned16( out + 6, in->data.RfComm.maxFrameSize );
|
||||
write_unaligned8( out + 7, in->data.RfComm.advancedCredit );
|
||||
#endif
|
||||
}
|
||||
|
||||
/* from file BtLib.h */
|
||||
|
|
Loading…
Reference in a new issue