added talloc_set_log_* documentation
authorAndrew Tridgell <tridge@samba.org>
Mon, 24 Aug 2009 06:01:05 +0000 (16:01 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 24 Aug 2009 06:30:00 +0000 (16:30 +1000)
lib/talloc/talloc_guide.txt

index 7890f9f265cce52cda7079ab7b2e5e0db4edb6ac..3b6467a08301d35fd32ba05e2888cc5a247c912f 100644 (file)
@@ -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