ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libmemcached-1.0 / behavior.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 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 LIBMEMCACHED_API
23 memcached_return_t memcached_behavior_set(memcached_st *ptr, const memcached_behavior_t flag,
24 uint64_t data);
25
26 LIBMEMCACHED_API
27 uint64_t memcached_behavior_get(memcached_st *ptr, const memcached_behavior_t flag);
28
29 LIBMEMCACHED_API
30 memcached_return_t memcached_behavior_set_distribution(memcached_st *ptr,
31 memcached_server_distribution_t type);
32
33 LIBMEMCACHED_API
34 memcached_server_distribution_t memcached_behavior_get_distribution(memcached_st *ptr);
35
36 LIBMEMCACHED_API
37 memcached_return_t memcached_behavior_set_key_hash(memcached_st *ptr, memcached_hash_t type);
38
39 LIBMEMCACHED_API
40 memcached_hash_t memcached_behavior_get_key_hash(memcached_st *ptr);
41
42 LIBMEMCACHED_API
43 memcached_return_t memcached_behavior_set_distribution_hash(memcached_st *ptr,
44 memcached_hash_t type);
45
46 LIBMEMCACHED_API
47 memcached_hash_t memcached_behavior_get_distribution_hash(memcached_st *ptr);
48
49 LIBMEMCACHED_API
50 const char *libmemcached_string_behavior(const memcached_behavior_t flag);
51
52 LIBMEMCACHED_API
53 const char *libmemcached_string_distribution(const memcached_server_distribution_t flag);
54
55 LIBMEMCACHED_API
56 memcached_return_t memcached_bucket_set(memcached_st *self, const uint32_t *host_map,
57 const uint32_t *forward_map, const uint32_t buckets,
58 const uint32_t replicas);
59
60 #ifdef __cplusplus
61 }
62 #endif