ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libmemcached-1.0 / sasl.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 #if defined(LIBMEMCACHED_WITH_SASL_SUPPORT) && LIBMEMCACHED_WITH_SASL_SUPPORT
19 # include <sasl/sasl.h>
20 #else
21 # define sasl_callback_t void
22 #endif
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 LIBMEMCACHED_API
29 void memcached_set_sasl_callbacks(memcached_st *ptr, const sasl_callback_t *callbacks);
30
31 LIBMEMCACHED_API
32 memcached_return_t memcached_set_sasl_auth_data(memcached_st *ptr, const char *username,
33 const char *password);
34
35 LIBMEMCACHED_API
36 memcached_return_t memcached_destroy_sasl_auth_data(memcached_st *ptr);
37
38 LIBMEMCACHED_API
39 sasl_callback_t *memcached_get_sasl_callbacks(memcached_st *ptr);
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #include "libmemcached-1.0/struct/sasl.h"