typesafe_cb: expose _exact and _def variants.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Jun 2010 10:02:55 +0000 (19:32 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Jun 2010 10:02:55 +0000 (19:32 +0930)
commit061e63028390bc27db749c75a3689c2888f00f57
treed798168330b2a81f372562e0077b54bfe19a4539
parent894dd68a8c899ca7b5028334804fa1638b583908
typesafe_cb: expose _exact and _def variants.

We can't allow NULL with the new variant (needed by talloc's set_destructor
for example), so document that and expose all three variants for different
uses.
ccan/typesafe_cb/test/compile_fail-typesafe_cb_exact.c [new file with mode: 0644]
ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c [new file with mode: 0644]
ccan/typesafe_cb/test/compile_ok-typesafe_cb-const.c
ccan/typesafe_cb/test/compile_ok-typesafe_cb_def-const.c [new file with mode: 0644]
ccan/typesafe_cb/typesafe_cb.h