membuf: add membuf_added and membuf_unadd APIs.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Oct 2018 00:23:35 +0000 (10:53 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Oct 2018 00:23:35 +0000 (10:53 +1030)
commitb3cc8ae7c2fe35cf20bd0bac211658c0ecbdbdae
treec34d62c6fb4ae7d0cf049a3851a2fa2001e73dfd
parent7d1f0c73e4d321561abb74f82c8be97f10d69836
membuf: add membuf_added and membuf_unadd APIs.

Clean up some whitespace while we're there too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/membuf/membuf.c
ccan/membuf/membuf.h
ccan/membuf/test/run.c