Don't use int to initialize memcached_return_t
[m6w6/libmemcached] / libmemcached / libmemcached_probes.h
1 /* LibMemcached
2 * Copyright (C) 2006-2009 Brian Aker
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 *
8 * Summary:
9 *
10 */
11
12 /*
13 * This file contains the definition of the various probes supported by
14 * libmemcached. Currently it only support DTRACE, but just create an
15 * implementation of the following macros to create your own sort of
16 * probing :)
17 */
18 #ifndef LIBMEMCACHED_PROBES_H
19 #define LIBMEMCACHED_PROBES_H
20
21 #ifdef HAVE_DTRACE
22 /*
23 * Create the DTrace probes on the system using it (to support both Solaris
24 * and MacOS X
25 */
26 #include "dtrace_probes.h"
27
28 #else
29 /*
30 * Provide dummy macros so that we don't need to clutter the code with
31 * ifdefs when we want to use the probes.
32 */
33
34 #define LIBMEMCACHED_MEMCACHED_ADD_END()
35 #define LIBMEMCACHED_MEMCACHED_ADD_END_ENABLED() (0)
36 #define LIBMEMCACHED_MEMCACHED_ADD_START()
37 #define LIBMEMCACHED_MEMCACHED_ADD_START_ENABLED() (0)
38 #define LIBMEMCACHED_MEMCACHED_CONNECT_END()
39 #define LIBMEMCACHED_MEMCACHED_CONNECT_END_ENABLED() (0)
40 #define LIBMEMCACHED_MEMCACHED_CONNECT_START()
41 #define LIBMEMCACHED_MEMCACHED_CONNECT_START_ENABLED() (0)
42 #define LIBMEMCACHED_MEMCACHED_DECREMENT_END()
43 #define LIBMEMCACHED_MEMCACHED_DECREMENT_END_ENABLED() (0)
44 #define LIBMEMCACHED_MEMCACHED_DECREMENT_START()
45 #define LIBMEMCACHED_MEMCACHED_DECREMENT_START_ENABLED() (0)
46 #define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_END()
47 #define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_END_ENABLED() (0)
48 #define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_START()
49 #define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_START_ENABLED() (0)
50 #define LIBMEMCACHED_MEMCACHED_DELETE_END()
51 #define LIBMEMCACHED_MEMCACHED_DELETE_END_ENABLED() (0)
52 #define LIBMEMCACHED_MEMCACHED_DELETE_START()
53 #define LIBMEMCACHED_MEMCACHED_DELETE_START_ENABLED() (0)
54 #define LIBMEMCACHED_MEMCACHED_FLUSH_END()
55 #define LIBMEMCACHED_MEMCACHED_FLUSH_END_ENABLED() (0)
56 #define LIBMEMCACHED_MEMCACHED_FLUSH_START()
57 #define LIBMEMCACHED_MEMCACHED_FLUSH_START_ENABLED() (0)
58 #define LIBMEMCACHED_MEMCACHED_GET_END()
59 #define LIBMEMCACHED_MEMCACHED_GET_END_ENABLED() (0)
60 #define LIBMEMCACHED_MEMCACHED_GET_START()
61 #define LIBMEMCACHED_MEMCACHED_GET_START_ENABLED() (0)
62 #define LIBMEMCACHED_MEMCACHED_INCREMENT_END()
63 #define LIBMEMCACHED_MEMCACHED_INCREMENT_END_ENABLED() (0)
64 #define LIBMEMCACHED_MEMCACHED_INCREMENT_START()
65 #define LIBMEMCACHED_MEMCACHED_INCREMENT_START_ENABLED() (0)
66 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_END()
67 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_END_ENABLED() (0)
68 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START()
69 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START_ENABLED() (0)
70 #define LIBMEMCACHED_MEMCACHED_MGET_END()
71 #define LIBMEMCACHED_MEMCACHED_MGET_END_ENABLED() (0)
72 #define LIBMEMCACHED_MEMCACHED_MGET_START()
73 #define LIBMEMCACHED_MEMCACHED_MGET_START_ENABLED() (0)
74 #define LIBMEMCACHED_MEMCACHED_REPLACE_END()
75 #define LIBMEMCACHED_MEMCACHED_REPLACE_END_ENABLED() (0)
76 #define LIBMEMCACHED_MEMCACHED_REPLACE_START()
77 #define LIBMEMCACHED_MEMCACHED_REPLACE_START_ENABLED() (0)
78 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END()
79 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END_ENABLED() (0)
80 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START()
81 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START_ENABLED() (0)
82 #define LIBMEMCACHED_MEMCACHED_SET_END()
83 #define LIBMEMCACHED_MEMCACHED_SET_END_ENABLED() (0)
84 #define LIBMEMCACHED_MEMCACHED_SET_START()
85 #define LIBMEMCACHED_MEMCACHED_SET_START_ENABLED() (0)
86
87 #endif
88
89 #endif /* LIBMEMCACHED_PROBES_H */