Logo Search packages:      
Sourcecode: samba4 version File versions  Download package

void* talloc_parent ( const void *  ptr  ) 

Get the parent chunk of a pointer.

[in] ptr The talloc pointer to inspect.
The talloc parent of ptr, NULL on error.

Definition at line 294 of file talloc.c.

Referenced by talloc_reparent().

      struct talloc_chunk *tc = talloc_parent_chunk(ptr);
      return tc? TC_PTR_FROM_CHUNK(tc) : NULL;

Generated by  Doxygen 1.6.0   Back to index