ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libmemcached-1.0 / server_list.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 /* Server List Public functions */
23 LIBMEMCACHED_API
24 void memcached_server_list_free(memcached_server_list_st ptr);
25
26 LIBMEMCACHED_API
27 memcached_return_t memcached_server_push(memcached_st *ptr, const memcached_server_list_st list);
28
29 LIBMEMCACHED_API
30 memcached_server_list_st memcached_server_list_append(memcached_server_list_st ptr,
31 const char *hostname, in_port_t port,
32 memcached_return_t *error);
33 LIBMEMCACHED_API
34 memcached_server_list_st memcached_server_list_append_with_weight(memcached_server_list_st ptr,
35 const char *hostname,
36 in_port_t port, uint32_t weight,
37 memcached_return_t *error);
38 LIBMEMCACHED_API
39 uint32_t memcached_server_list_count(const memcached_server_list_st ptr);
40
41 #ifdef __cplusplus
42 } // extern "C"
43 #endif