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.
16 This sets/gets the default function we will be using.
19 hashkit_return_t
hashkit_set_function(hashkit_st
*hash
, hashkit_hash_algorithm_t hash_algorithm
);
22 hashkit_return_t
hashkit_set_custom_function(hashkit_st
*hash
, hashkit_hash_fn function
, void *context
);
25 hashkit_hash_algorithm_t
hashkit_get_function(const hashkit_st
*hash
);
28 This sets/gets the function we use for distribution.
31 hashkit_return_t
hashkit_set_distribution_function(hashkit_st
*hash
, hashkit_hash_algorithm_t hash_algorithm
);
34 hashkit_return_t
hashkit_set_custom_distribution_function(hashkit_st
*self
, hashkit_hash_fn function
, void *context
);
37 hashkit_hash_algorithm_t
hashkit_get_distribution_function(const hashkit_st
*self
);