X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Ftools.h;fp=tools%2Ftools.h;h=1637ff51227a698420d7181c17542510ae966583;hp=1e9e22424906284458ea14f789c05ff3859916db;hb=aabf300e324f7da5134d7ad45afba11225045c24;hpb=44b37ee8aeb185f6837378fef17d887bda6ff89b diff --git a/tools/tools.h b/tools/tools.h index 1e9e2242..1637ff51 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -1,8 +1,10 @@ #ifndef CCAN_TOOLS_H #define CCAN_TOOLS_H -#include -#include #include "config.h" +#include +#include +#include +#include #ifndef CCAN_COMPILER #define CCAN_COMPILER "cc" @@ -54,6 +56,9 @@ char *run_with_timeout(const void *ctx, const char *cmd, const char *temp_dir(const void *ctx); bool move_file(const char *oldname, const char *newname); +void *do_talloc_realloc(void *p, size_t size); +void *talloc_grab_file(const void *ctx, const char *filename, size_t *size); + /* From compile.c. * * These all compile into a temporary dir, and return the filename.