WIP
[m6w6/libmemcached] / src / libhashkit / common.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 #include "libhashkit/hashkitcon.h"
19
20 #include <cassert>
21 #include <cerrno>
22 #include <cstdio>
23 #include <cstdlib>
24 #include <cmath>
25
26 #ifndef __WORDSIZE
27 # ifdef __MINGW32__
28 # define __WORDSIZE 32
29 # endif
30 #endif
31
32 #include "libhashkit-1.0/hashkit.h"
33 #include "libhashkit/algorithm.h"
34 #include "libhashkit/is.h"
35 #include "libhashkit/string.h"
36 #include "libhashkit/aes.h"
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 void md5_signature(const unsigned char *key, unsigned int length, unsigned char *result);
43
44 int update_continuum(hashkit_st *hashkit);
45
46 #ifdef __cplusplus
47 }
48 #endif