2 * Copyright (C) 2010 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
9 #ifndef HASHKIT_FUNCTION_H
10 #define HASHKIT_FUNCTION_H
17 This sets/gets the default function we will be using.
20 hashkit_return_t
hashkit_set_function(hashkit_st
*hash
, hashkit_hash_algorithm_t hash_algorithm
);
23 hashkit_return_t
hashkit_set_custom_function(hashkit_st
*hash
, hashkit_hash_fn function
, void *context
);
26 hashkit_hash_algorithm_t
hashkit_get_function(const hashkit_st
*hash
);
29 This sets/gets the function we use for distribution.
32 hashkit_return_t
hashkit_set_distribution_function(hashkit_st
*hash
, hashkit_hash_algorithm_t hash_algorithm
);
35 hashkit_return_t
hashkit_set_custom_distribution_function(hashkit_st
*self
, hashkit_hash_fn function
, void *context
);
38 hashkit_hash_algorithm_t
hashkit_get_distribution_function(const hashkit_st
*self
);
44 #endif /* HASHKIT_FUNCTION_H */