Skip to content

Instantly share code, notes, and snippets.

@eventhelix
Last active August 29, 2015 14:16
Show Gist options
  • Save eventhelix/376414e7f256ccbbf71c to your computer and use it in GitHub Desktop.
Save eventhelix/376414e7f256ccbbf71c to your computer and use it in GitHub Desktop.
void CircuitManager::GetStatus(const CircuitStatusMsg *pMsg) const
{
for (int i= 0; i < MAX_CIRCUITS; i++)
{
pMsg->circuitInfo[i].circuitId = m_pCircuit[i]->GetId();
pMsg->circuitInfo[i].circuitType = m_pCircuit[i]->GetType();
pMsg->circuitInfo[i].circuitStatus = m_pCircuit[i]->GetStatus();
pMsg->circuitInfo[i].circuitCallId = m_pCircuit[i]->GetCallId();
pMsg->circuitInfo[i].circuitState = m_pCircuit[i]->GetState();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment