Fixed a missing CLEANFILES entry.
[awesomized/libmemcached] / libmemcached / hash.h
1 /* LibMemcached
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 * Summary: hash interface code
9 *
10 */
11
12 #ifndef __MEMCACHED_HASH_H__
13 #define __MEMCACHED_HASH_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /* The two public hash bits */
20 LIBMEMCACHED_API
21 uint32_t memcached_generate_hash_value(const char *key, size_t key_length, memcached_hash_t hash_algorithm);
22
23 LIBMEMCACHED_API
24 const hashkit_st *memcached_get_hashkit(const memcached_st *ptr);
25
26 LIBMEMCACHED_API
27 memcached_return_t memcached_set_hashkit(memcached_st *ptr, hashkit_st *hashk);
28
29 LIBMEMCACHED_API
30 uint32_t memcached_generate_hash(const memcached_st *ptr, const char *key, size_t key_length);
31
32 LIBMEMCACHED_LOCAL
33 uint32_t memcached_generate_hash_with_redistribution(memcached_st *ptr, const char *key, size_t key_length);
34
35 LIBMEMCACHED_API
36 void memcached_autoeject(memcached_st *ptr);
37
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif /* __MEMCACHED_HASH_H__ */