From e6da38c8b7791292243b539cfbaf763f5b61f509 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Aug 2009 16:01:05 +1000 Subject: added talloc_set_log_* documentation --- lib/talloc/talloc_guide.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib') diff --git a/lib/talloc/talloc_guide.txt b/lib/talloc/talloc_guide.txt index 7890f9f265..3b6467a083 100644 --- a/lib/talloc/talloc_guide.txt +++ b/lib/talloc/talloc_guide.txt @@ -744,3 +744,14 @@ know the structure you want is a parent of another context. Like talloc_find_parent_byname() but takes a type, making it typesafe. +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +void talloc_set_log_fn(void (*log_fn)(const char *message)); + +This function sets a logging function that talloc will use for +warnings and errors. By default talloc will not print any warnings or +errors. + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +void talloc_set_log_stderr(void) + +This sets the talloc log function to write log messages to stderr -- cgit