From 7683205c69c76b6515c242429a927974aedfb5c0 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sat, 22 Aug 2026 06:48:01 +0000 Subject: core: build: Add manifest handling This resolves redundant rebuilds by detecting when there are differences in a built file. Signed-off-by: Chloe M. --- head/bop/hash.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 head/bop/hash.h (limited to 'head') diff --git a/head/bop/hash.h b/head/bop/hash.h new file mode 100644 index 0000000..011812f --- /dev/null +++ b/head/bop/hash.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2026, Chloe M., et al. + * Provided under the BSD-3 clause. + */ + +#ifndef BOP_HASH_H +#define BOP_HASH_H 1 + +#include +#include +#include + +#define BOP_HASH_LEN 65 + +/* + * Hash a file with SHA256 + * + * @path: Path of file to hash + * @hashres: Hash result is written here + * + * Returns zero on success + */ +int bop_hash_file(const char *path, char hashres[BOP_HASH_LEN]); + +#endif /* !BOP_HASH_H */ -- cgit v1.2.3