semver: 1.0 -> 1
[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 #include <ciso646>
26
27 #ifndef __WORDSIZE
28 # ifdef __MINGW32__
29 # define __WORDSIZE 32
30 # endif
31 #endif
32
33 #include "libhashkit-1/hashkit.h"
34 #include "libhashkit/algorithm.h"
35 #include "libhashkit/is.h"
36 #include "libhashkit/string.h"
37 #include "libhashkit/aes.h"
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 void md5_signature(const unsigned char *key, unsigned int length, unsigned char *result);
44
45 int update_continuum(hashkit_st *hashkit);
46
47 #ifdef __cplusplus
48 }
49 #endif