talloc: talloc_set_flag/talloc_unset_flag and TALLOC_FLAG_WARN_MAY_REFERENCE talloc-reference-check-wip
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 25 Oct 2011 00:51:37 +0000 (11:21 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 25 Oct 2011 00:51:37 +0000 (11:21 +1030)
commit1611cbd0ba11297d2ab16623dbb62e10e98cdbe4
treeecaae4bda7410e8bdb99426e682e49ef5559a885
parent7b1674617330f31526040f062ea134a9b3d8d496
talloc: talloc_set_flag/talloc_unset_flag and TALLOC_FLAG_WARN_MAY_REFERENCE

Add new API for twiddling talloc features.  Make it fail on unknown features
for future compatibility.

The only feature is TALLOC_FLAG_WARN_MAY_REFERENCE, which gets serious with
warning about using talloc_may_reference().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/talloc/talloc.c
lib/talloc/talloc.h
lib/talloc/wscript