ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libmemcached-1.0 / result.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.0/struct/result.h"
17
18 #pragma once
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /* Result Struct */
25 LIBMEMCACHED_API
26 void memcached_result_free(memcached_result_st *result);
27
28 LIBMEMCACHED_API
29 void memcached_result_reset(memcached_result_st *ptr);
30
31 LIBMEMCACHED_API
32 memcached_result_st *memcached_result_create(const memcached_st *ptr, memcached_result_st *result);
33
34 LIBMEMCACHED_API
35 const char *memcached_result_key_value(const memcached_result_st *self);
36
37 LIBMEMCACHED_API
38 size_t memcached_result_key_length(const memcached_result_st *self);
39
40 LIBMEMCACHED_API
41 const char *memcached_result_value(const memcached_result_st *self);
42
43 LIBMEMCACHED_API
44 char *memcached_result_take_value(memcached_result_st *self);
45
46 LIBMEMCACHED_API
47 size_t memcached_result_length(const memcached_result_st *self);
48
49 LIBMEMCACHED_API
50 uint32_t memcached_result_flags(const memcached_result_st *self);
51
52 LIBMEMCACHED_API
53 uint64_t memcached_result_cas(const memcached_result_st *self);
54
55 LIBMEMCACHED_API
56 memcached_return_t memcached_result_set_value(memcached_result_st *ptr, const char *value,
57 size_t length);
58
59 LIBMEMCACHED_API
60 void memcached_result_set_flags(memcached_result_st *self, uint32_t flags);
61
62 LIBMEMCACHED_API
63 void memcached_result_set_expiration(memcached_result_st *self, time_t expiration);
64
65 #ifdef __cplusplus
66 } // extern "C"
67 #endif