Merge in updates to make sure exit/return is done properly.
[m6w6/libmemcached] / libhashkit / digest.h
1 /* HashKit
2 * Copyright (C) 2010 Brian Aker
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 */
8
9 #ifndef HASHKIT_DIGEST_H
10 #define HASHKIT_DIGEST_H
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 HASHKIT_API
17 uint32_t hashkit_digest(const hashkit_st *self, const char *key, size_t key_length);
18
19 /**
20 This is a utilitly function provided so that you can directly access hashes with a hashkit_st.
21 */
22
23 HASHKIT_API
24 uint32_t libhashkit_digest(const char *key, size_t key_length, hashkit_hash_algorithm_t hash_algorithm);
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif /* HASHKIT_DIGEST_H */