xref: /haiku/src/libs/libsolv/solv/chksum.h (revision 909af08f4328301fbdef1ffb41f566c3b5bec0c7)
1 /*
2  * Copyright (c) 2007-2012, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7 
8 #ifndef LIBSOLV_CHKSUM_H
9 #define LIBSOLV_CHKSUM_H
10 
11 #include "pool.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 void *solv_chksum_create(Id type);
18 void *solv_chksum_create_from_bin(Id type, const unsigned char *buf);
19 void solv_chksum_add(void *handle, const void *data, int len);
20 Id solv_chksum_get_type(void *handle);
21 int solv_chksum_isfinished(void *handle);
22 const unsigned char *solv_chksum_get(void *handle, int *lenp);
23 void *solv_chksum_free(void *handle, unsigned char *cp);
24 const char *solv_chksum_type2str(Id type);
25 Id solv_chksum_str2type(const char *str);
26 int solv_chksum_len(Id type);
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 
32 #endif /* LIBSOLV_CHKSUM_H */
33