semver: 1.0 -> 1
[m6w6/libmemcached] / include / libmemcached-1 / stats.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 #include "libmemcached-1/struct/stat.h"
17
18 #pragma once
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 LIBMEMCACHED_API
25 void memcached_stat_free(const memcached_st *, memcached_stat_st *);
26
27 LIBMEMCACHED_API
28 memcached_stat_st *memcached_stat(memcached_st *ptr, char *args, memcached_return_t *error);
29
30 LIBMEMCACHED_API
31 memcached_return_t memcached_stat_servername(memcached_stat_st *memc_stat, char *args,
32 const char *hostname, in_port_t port);
33
34 LIBMEMCACHED_API
35 char *memcached_stat_get_value(const memcached_st *ptr, memcached_stat_st *memc_stat,
36 const char *key, memcached_return_t *error);
37
38 LIBMEMCACHED_API
39 char **memcached_stat_get_keys(memcached_st *ptr, memcached_stat_st *memc_stat,
40 memcached_return_t *error);
41
42 LIBMEMCACHED_API
43 memcached_return_t memcached_stat_execute(memcached_st *memc, const char *args,
44 memcached_stat_fn func, void *context);
45
46 #ifdef __cplusplus
47 } // extern "C"
48 #endif