From fac4cdb3fad6037e0841724a50d5364d16603f07 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Sun, 28 Jun 2009 18:05:17 +0300 Subject: blob: function to checksum a blob And use it in couple of places. Some whitespace fixes too. --- src/apk_blob.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/apk_blob.h') diff --git a/src/apk_blob.h b/src/apk_blob.h index 29da722..e4a598f 100644 --- a/src/apk_blob.h +++ b/src/apk_blob.h @@ -13,6 +13,7 @@ #define APK_BLOB_H #include +#include "apk_defines.h" struct apk_blob { unsigned int len; @@ -43,6 +44,7 @@ int apk_blob_rsplit(apk_blob_t blob, char split, apk_blob_t *l, apk_blob_t *r); unsigned apk_blob_uint(apk_blob_t blob, int base); unsigned long apk_blob_hash(apk_blob_t str); int apk_blob_compare(apk_blob_t a, apk_blob_t b); +void apk_blob_csum(apk_blob_t blob, csum_t csum); int apk_blob_for_each_segment(apk_blob_t blob, const char *split, apk_blob_cb cb, void *ctx); -- cgit v1.2.3