]> git.ozlabs.org Git - ccan/commit
grab_file: clarify API usage, since Sangbida had to write a helper.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2025 01:57:57 +0000 (12:27 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2025 01:57:57 +0000 (12:27 +1030)
commit6103c49278ad52ff4dacebdcac7a4d2e1d3bb3d3
tree92eea8985387cadf664f35721b8f7b6243c7a5f6
parentfd3fd70c7c19ae3db38e4f90e2c45cbe7cda564e
grab_file: clarify API usage, since Sangbida had to write a helper.

Turns out many cases just want the damn raw file contents.  So, split the
interface into grab_fd_str/grab_file_str and grab_fd_raw/grab_file_raw
and make a deprecated alias from grab_fd/grab_file to grab_fd_str/grab_file_str.

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