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

SOFIAPUBFUN int su_root_set_magic ( su_root_t self,
su_root_magic_t magic 
)

Set the context pointer.

Set the context pointer (magic) of a root object.

Parameters:
selfpointer to a root object
magicpointer to user data
Return values:
0when successful,
-1upon error.

Definition at line 567 of file su_root.c.

References su_root_set_magic().

Referenced by su_root_clone(), and su_root_set_magic().

{
  if (self == NULL)
    return (void)(errno = EFAULT), -1;
  assert(SU_ROOT_OWN_THREAD(self));
  self->sur_magic = magic;
  return 0;
}

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