commsfwsupport/commselements/commsfw/src/cftransport.cpp
changeset 25 e53adc4c49de
parent 0 dfb7c4ff071f
child 76 576874e13a2c
equal deleted inserted replaced
22:592244873960 25:e53adc4c49de
  1106 		}
  1106 		}
  1107 #endif
  1107 #endif
  1108 	TRuntimeCtxIdOp op(nodeId);
  1108 	TRuntimeCtxIdOp op(nodeId);
  1109 	op.Set(iPointerSalt, iThreadRegister.SelfWorkerId());
  1109 	op.Set(iPointerSalt, iThreadRegister.SelfWorkerId());
  1110 //TODO - it would be better to print the whole address (aCookie.Size() bytes starting from &aCookie == aCookie.Printable();)
  1110 //TODO - it would be better to print the whole address (aCookie.Size() bytes starting from &aCookie == aCookie.Printable();)
  1111 	__CFLOG_VAR(( KLogCommsFw, KLogFwTransport, _L8("RegisterItf(%08x) => %08x:%08x"), nodeId.Ptr(), *reinterpret_cast<TUint*>(&aCookie), *(reinterpret_cast<TUint*>(&aCookie) + 1)));
  1111 	__CFLOG_VAR(( KLogCommsFw, KLogFwTransport, _L8("RegisterItf(%08x) => %08x %08x"), nodeId.Ptr(), *reinterpret_cast<TUint*>(&aCookie), *(reinterpret_cast<TUint*>(&aCookie) + 1)));
  1112 
  1112 
  1113 #ifdef SYMBIAN_TRACE_ENABLE
  1113 #ifdef SYMBIAN_TRACE_ENABLE
  1114 	__ASSERT_ALWAYS(!iIntfRegister.Find(TIntPtr(nodeId.Ptr())), Panic(ECFTransBadRegistration));
  1114 	__ASSERT_ALWAYS(!iIntfRegister.Find(TIntPtr(nodeId.Ptr())), Panic(ECFTransBadRegistration));
  1115 
  1115 
  1116 	if(iIntfRegister.Insert(TIntPtr(nodeId.Ptr())) != KErrNone)
  1116 	if(iIntfRegister.Insert(TIntPtr(nodeId.Ptr())) != KErrNone)
  1133 */
  1133 */
  1134 void CCommsTransportImpl::DeregisterAddress(TRuntimeCtxId& aCookie)
  1134 void CCommsTransportImpl::DeregisterAddress(TRuntimeCtxId& aCookie)
  1135 	{
  1135 	{
  1136 	//This transport implementation currently only registers TNodeId
  1136 	//This transport implementation currently only registers TNodeId
  1137 //TODO - it would be better to print the whole address (aCookie.Size() bytes starting from &aCookie == aCookie.Printable();)
  1137 //TODO - it would be better to print the whole address (aCookie.Size() bytes starting from &aCookie == aCookie.Printable();)
  1138 	__CFLOG_VAR(( KLogCommsFw, KLogFwTransport, _L8("DeregisterItf(%08x => %08x:%08x"), address_cast<TNodeId>(aCookie).Ptr(), *reinterpret_cast<const TUint*>(&aCookie), *(reinterpret_cast<const TUint*>(&aCookie) + 1)));
  1138 	__CFLOG_VAR(( KLogCommsFw, KLogFwTransport, _L8("DeregisterItf(%08x) => %08x %08x"), address_cast<TNodeId>(aCookie).Ptr(), *reinterpret_cast<const TUint*>(&aCookie), *(reinterpret_cast<const TUint*>(&aCookie) + 1)));
  1139 	--iRegisteredCount;
  1139 	--iRegisteredCount;
  1140 	__ASSERT_ALWAYS(iRegisteredCount >= 0, Panic(ECFExcessInterfaceDeregistration));
  1140 	__ASSERT_ALWAYS(iRegisteredCount >= 0, Panic(ECFExcessInterfaceDeregistration));
  1141 	aCookie.SetNull();
  1141 	aCookie.SetNull();
  1142 
  1142 
  1143 #ifdef SYMBIAN_TRACE_ENABLE
  1143 #ifdef SYMBIAN_TRACE_ENABLE