summaryrefslogtreecommitdiff
path: root/src/apk_blob.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-06-28 18:05:17 +0300
committerTimo Teras <timo.teras@iki.fi>2009-06-28 18:52:40 +0300
commitfac4cdb3fad6037e0841724a50d5364d16603f07 (patch)
tree3d180deab279e6e0046ebba1cdc9a02e97d85516 /src/apk_blob.h
parent7a29678aac20ac9e113704f8a5743f6051edef8d (diff)
downloadapk-tools-fac4cdb3fad6037e0841724a50d5364d16603f07.tar.gz
apk-tools-fac4cdb3fad6037e0841724a50d5364d16603f07.tar.bz2
apk-tools-fac4cdb3fad6037e0841724a50d5364d16603f07.tar.xz
apk-tools-fac4cdb3fad6037e0841724a50d5364d16603f07.zip
blob: function to checksum a blob
And use it in couple of places. Some whitespace fixes too.
Diffstat (limited to 'src/apk_blob.h')
-rw-r--r--src/apk_blob.h2
1 files changed, 2 insertions, 0 deletions
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 <string.h>
+#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);