src/libmemcached: apply clang-format
[m6w6/libmemcached] / src / libmemcached / flag.hpp
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 enum memcached_flag_t {
19 MEMCACHED_FLAG_AUTO_EJECT_HOSTS,
20 MEMCACHED_FLAG_BINARY_PROTOCOL,
21 MEMCACHED_FLAG_BUFFER_REQUESTS,
22 MEMCACHED_FLAG_HASH_WITH_NAMESPACE,
23 MEMCACHED_FLAG_NO_BLOCK,
24 MEMCACHED_FLAG_REPLY,
25 MEMCACHED_FLAG_RANDOMIZE_REPLICA_READ,
26 MEMCACHED_FLAG_SUPPORT_CAS,
27 MEMCACHED_FLAG_TCP_NODELAY,
28 MEMCACHED_FLAG_USE_SORT_HOSTS,
29 MEMCACHED_FLAG_USE_UDP,
30 MEMCACHED_FLAG_VERIFY_KEY,
31 MEMCACHED_FLAG_TCP_KEEPALIVE,
32 MEMCACHED_FLAG_IS_AES,
33 MEMCACHED_FLAG_IS_FETCHING_VERSION
34 };
35
36 bool memcached_flag(const memcached_st &, const memcached_flag_t);
37 void memcached_flag(memcached_st &, const memcached_flag_t, const bool);