Logo Search packages:      
Sourcecode: sofia-sip version File versions

TPORT_DLL tport_t* tport_ref ( tport_t *  tp  ) 

Create a new reference to a transport object.

Definition at line 1058 of file tport.c.

References tport_ref().

Referenced by nta_outgoing_tagged(), tport_incref(), and tport_ref().

{
  if (tp) {
    if (tp->tp_refs >= 0)
      tp->tp_refs++;
    else if (tp->tp_refs == -1)
      tp->tp_refs = 1;
  }
  return tp;
}


Generated by  Doxygen 1.6.0   Back to index