Ignore *.exe
[awesomized/libmemcached] / libmemcached / server_list.h
1 /* LibMemcached
2 * Copyright (C) 2006-2009 Brian Aker
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 *
8 * Summary: Types for libmemcached
9 *
10 */
11
12 #ifndef __LIBMEMCACHED_SERVER_LIST_H__
13 #define __LIBMEMCACHED_SERVER_LIST_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /* Server List Public functions */
20 LIBMEMCACHED_API
21 void memcached_server_list_free(memcached_server_list_st ptr);
22
23 LIBMEMCACHED_API
24 memcached_return_t memcached_server_push(memcached_st *ptr, const memcached_server_list_st list);
25
26 LIBMEMCACHED_API
27 memcached_server_list_st memcached_server_list_append(memcached_server_list_st ptr,
28 const char *hostname,
29 in_port_t port,
30 memcached_return_t *error);
31 LIBMEMCACHED_API
32 memcached_server_list_st memcached_server_list_append_with_weight(memcached_server_list_st ptr,
33 const char *hostname,
34 in_port_t port,
35 uint32_t weight,
36 memcached_return_t *error);
37 LIBMEMCACHED_API
38 uint32_t memcached_server_list_count(const memcached_server_list_st ptr);
39
40 LIBMEMCACHED_LOCAL
41 uint32_t memcached_servers_set_count(memcached_server_list_st servers, uint32_t count);
42
43 LIBMEMCACHED_LOCAL
44 memcached_server_st *memcached_server_list(const memcached_st *);
45
46 LIBMEMCACHED_LOCAL
47 void memcached_server_list_set(memcached_st *self, memcached_server_list_st list);
48
49 #ifdef __cplusplus
50 } // extern "C"
51 #endif
52
53 #endif /* __LIBMEMCACHED_SERVER_LIST_H__ */