MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / DetachDevice

Method DetachDevice

Src/Core/GateRelay.cpp:279–287  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

277
278////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
279void FSecure::C3::Core::GateRelay::DetachDevice(DeviceId const& iidOfDeviceToDetach)
280{
281 if (FindDevice(iidOfDeviceToDetach)->IsChannel())
282 m_Profiler->Get().m_Gateway.ReDeleteChannel(iidOfDeviceToDetach);
283 else
284 m_Profiler->Get().m_Gateway.ReDeletePeripheral(iidOfDeviceToDetach);
285
286 Relay::DetachDevice(iidOfDeviceToDetach);
287}
288
289////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
290void FSecure::C3::Core::GateRelay::On(ProceduresN2N::InitializeRouteQuery query)

Callers

nothing calls this directly

Calls 4

ReDeleteChannelMethod · 0.80
ReDeletePeripheralMethod · 0.80
IsChannelMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected