Merge in conversion to C++.
[m6w6/libmemcached] / libhashkit / common.h
1 /* HashKit
2 * Copyright (C) 2009 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 #include <config.h>
12
13 #include <assert.h>
14 #include <errno.h>
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <math.h>
18
19 #include <libhashkit/hashkit.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 HASHKIT_LOCAL
26 void md5_signature(const unsigned char *key, unsigned int length, unsigned char *result);
27
28 HASHKIT_LOCAL
29 int update_continuum(hashkit_st *hashkit);
30
31 #ifdef __cplusplus
32 }
33 #endif