commit:     4ed65c1f8455271bb2e839fbc30769cf9de94efe
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 21 19:18:34 2026 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jan 21 21:30:44 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=4ed65c1f

libq/hash: add hash_multiple_file_at

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/hash.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libq/hash.h b/libq/hash.h
index cc9d8a9..1347b3d 100644
--- a/libq/hash.h
+++ b/libq/hash.h
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018-2025 Gentoo Foundation
+ * Copyright 2018-2026 Gentoo Foundation
  * Distributed under the terms of the GNU General Public License v2
  *
  * Copyright 2018-     Fabian Groffen  - <[email protected]>
@@ -56,6 +56,8 @@ int hash_multiple_file_at_cb(
                char *blak2b, size_t *flen, int hashes);
 #define hash_multiple_file(f, m, s1, s2, s5, b, l, h) \
        hash_multiple_file_at_cb(AT_FDCWD, f, NULL, m, s1, s2, s5, b, l, h)
+#define hash_multiple_file_at(a, f, m, s1, s2, s5, b, l, h) \
+       hash_multiple_file_at_cb(a, f, NULL, m, s1, s2, s5, b, l, h)
 #define hash_compute_file(f, s2, s5, b, l, h) \
        hash_multiple_file_at_cb(AT_FDCWD, f, NULL, NULL, NULL, s2, s5, b, l, h)
 char *hash_file_at_cb(int pfd, const char *filename, int hash_algo, hash_cb_t 
cb);

Reply via email to