summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-08-24 16:01:05 +1000
committerAndrew Tridgell <tridge@samba.org>2009-08-24 16:30:00 +1000
commite6da38c8b7791292243b539cfbaf763f5b61f509 (patch)
treef02c3d3e2eabda51d3435ad5c181883986d8be6a /lib/talloc
parenta0e20418360cbbb0ddaff5f71675300b3b3db72a (diff)
downloadsamba-e6da38c8b7791292243b539cfbaf763f5b61f509.tar.gz
added talloc_set_log_* documentation
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/talloc_guide.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/talloc/talloc_guide.txt b/lib/talloc/talloc_guide.txt
index 7890f9f265c..3b6467a0830 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