1def040dc7cfd44c311feae5e28facf482b278e7
2 * Copyright (C) 2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
12 #if !defined(__cplusplus)
16 #include <sys/types.h>
17 #include <libhashkit/visibility.h>
18 #include <libhashkit/types.h>
19 #include <libhashkit/algorithm.h>
20 #include <libhashkit/behavior.h>
21 #include <libhashkit/function.h>
22 #include <libhashkit/strerror.h>
30 struct hashkit_function_st
{
31 hashkit_hash_fn function
;
33 } base_hash
, distribution_hash
;
36 bool is_base_same_distributed
:1;
45 hashkit_st
*hashkit_create(hashkit_st
*hash
);
48 hashkit_st
*hashkit_clone(hashkit_st
*destination
, const hashkit_st
*ptr
);
51 bool hashkit_compare(const hashkit_st
*first
, const hashkit_st
*second
);
54 void hashkit_free(hashkit_st
*hash
);
56 #define hashkit_is_allocated(__object) ((__object)->options.is_allocated)
57 #define hashkit_is_initialized(__object) ((__object)->options.is_initialized)
65 #endif /* HASHKIT_H */