1 #ifndef NDBMEMCACHE_GLOBAL_H
2 #define NDBMEMCACHE_GLOBAL_H
3 
4 /* Convenience macros */
5 #define LOG_INFO EXTENSION_LOG_INFO
6 #define LOG_WARNING EXTENSION_LOG_WARNING
7 
8 /* C-linkage macros */
9 #ifdef __cplusplus
10 #define DECLARE_FUNCTIONS_WITH_C_LINKAGE extern "C" {
11 #define END_FUNCTIONS_WITH_C_LINKAGE }
12 #else
13 #define DECLARE_FUNCTIONS_WITH_C_LINKAGE
14 #define END_FUNCTIONS_WITH_C_LINKAGE
15 #endif
16 
17 /* A memcached constant; also defined in default_engine.h */
18 #define POWER_LARGEST  200
19 
20 
21 /* Operation Verb Enums
22    --------------------
23    These are used in addition to the ENGINE_STORE_OPERATION constants defined
24    in memcached/types.h.  OP_READ must be greater than the highest OPERATION_x
25    defined there, and the largest OP_x constant defined here must fit inside
26    of workitem.base.verb (currently 4 bits).
27 */
28 enum {
29   OP_READ = 8,
30   OP_DELETE,
31   OP_ARITHMETIC,
32   OP_SCAN
33 };
34 
35 
36 #endif
37