summaryrefslogtreecommitdiff
path: root/src/chksum.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-03-01 14:50:29 +0100
committerMichael Schroeder <mls@suse.de>2011-03-01 14:50:29 +0100
commit172201e5e2f1a3880a4cd8324da51d92c5547b30 (patch)
tree60fb836cbc1e7c5b164c91ac39897637feb81b72 /src/chksum.h
parent2b1561293c44768896f2d5188054cf5d785ab00b (diff)
downloadlibsolv-172201e5e2f1a3880a4cd8324da51d92c5547b30.tar.gz
libsolv-172201e5e2f1a3880a4cd8324da51d92c5547b30.tar.bz2
libsolv-172201e5e2f1a3880a4cd8324da51d92c5547b30.zip
- add sat_chksum_create_from_bin() and sat_chksum_get_type() functions
Diffstat (limited to 'src/chksum.h')
-rw-r--r--src/chksum.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chksum.h b/src/chksum.h
index 89bdf86..bcdbc4f 100644
--- a/src/chksum.h
+++ b/src/chksum.h
@@ -1,8 +1,10 @@
#include "pool.h"
void *sat_chksum_create(Id type);
+void *sat_chksum_create_from_bin(Id type, const unsigned char *buf);
void sat_chksum_add(void *handle, const void *data, int len);
-unsigned char *sat_chksum_get(void *handle, int *lenp);
+Id sat_chksum_get_type(void *handle);
+const unsigned char *sat_chksum_get(void *handle, int *lenp);
void *sat_chksum_free(void *handle, unsigned char *cp);
static inline int sat_chksum_len(Id type)