2d515663466442cc0067cb0e8f9e414495dc3c60
[awesomized/libmemcached] / src / libmemcached / server_list.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 memcached_instance_st *memcached_instance_list(const memcached_st *);
19
20 uint32_t memcached_instance_list_count(const memcached_st *);
21
22 uint32_t memcached_servers_set_count(memcached_server_list_st servers, uint32_t count);
23
24 void memcached_instance_list_free(memcached_instance_st *self, uint32_t count);
25
26 void memcached_instance_set(memcached_st *, memcached_instance_st *, const uint32_t host_list_size);