semver: 1.0 -> 1
[m6w6/libmemcached] / include / libmemcached-1 / types / callback.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 enum memcached_callback_t {
19 MEMCACHED_CALLBACK_PREFIX_KEY = 0,
20 MEMCACHED_CALLBACK_USER_DATA = 1,
21 MEMCACHED_CALLBACK_CLEANUP_FUNCTION = 2,
22 MEMCACHED_CALLBACK_CLONE_FUNCTION = 3,
23 MEMCACHED_CALLBACK_GET_FAILURE = 7,
24 MEMCACHED_CALLBACK_DELETE_TRIGGER = 8,
25 MEMCACHED_CALLBACK_MAX,
26 MEMCACHED_CALLBACK_NAMESPACE = MEMCACHED_CALLBACK_PREFIX_KEY
27 };
28
29 #ifndef __cplusplus
30 typedef enum memcached_callback_t memcached_callback_t;
31 #endif