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

SOFIAPUBFUN int su_root_deregister ( su_root_t self,
int  index 

Remove a su_wait_t registration.

The function su_root_deregister() deregisters a su_wait_t object. The wait object, a callback function and a argument are removed from the root object. The wait object is destroyed.

selfpointer to root object
indexregistration index
Index of the wait object, or -1 upon an error.

Definition at line 786 of file su_root.c.

References su_root_deregister().

Referenced by stun_handle_destroy(), and su_root_deregister().

  if (!self)
    return (void)(errno = EFAULT), -1;
  if (index == 0 || index == -1)
    return (void)(errno = EINVAL), -1;

  return su_port_deregister(self->sur_port, index);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index