Updating for 1.0.2 release
[awesomized/libmemcached] / libhashkit-1.0 / 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 #pragma once
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 HASHKIT_API
16 uint32_t hashkit_digest(const hashkit_st *self, const char *key, size_t key_length);
17
18 /**
19 This is a utilitly function provided so that you can directly access hashes with a hashkit_st.
20 */
21
22 HASHKIT_API
23 uint32_t libhashkit_digest(const char *key, size_t key_length, hashkit_hash_algorithm_t hash_algorithm);
24
25 #ifdef __cplusplus
26 }
27 #endif