Commit 166c8cfb authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Added nta_default_leg().

darcs-hash:20060316172919-65a35-b3ad910e054937aa06390d097ff9f769d960e952.gz
parent 230a5d61
...@@ -3345,6 +3345,13 @@ nta_leg_t *nta_leg_tcreate(nta_agent_t *agent, ...@@ -3345,6 +3345,13 @@ nta_leg_t *nta_leg_tcreate(nta_agent_t *agent,
return NULL; return NULL;
} }
/** Return the default leg, if any */
nta_leg_t *nta_default_leg(nta_agent_t const *agent)
{
return agent ? agent->sa_default_leg : NULL;
}
/** /**
* Insert a call leg to agent. * Insert a call leg to agent.
*/ */
......
...@@ -183,6 +183,8 @@ nta_leg_t *nta_leg_tcreate(nta_agent_t *agent, ...@@ -183,6 +183,8 @@ nta_leg_t *nta_leg_tcreate(nta_agent_t *agent,
void nta_leg_destroy(nta_leg_t *leg); void nta_leg_destroy(nta_leg_t *leg);
nta_leg_t *nta_default_leg(nta_agent_t const *agent);
nta_leg_magic_t *nta_leg_magic(nta_leg_t const *leg, nta_leg_magic_t *nta_leg_magic(nta_leg_t const *leg,
nta_request_f *callback); nta_request_f *callback);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment