Fixed a typo that was causing a race condition error.
[m6w6/libmemcached] / libmemcached / callback.h
index de64a1996eb1a72152eac30af7c1c863145ab198..4c3a95f4ff270004250c49df212e4a21561a5ba2 100644 (file)
@@ -9,8 +9,14 @@
  *
  */
 
-#ifndef __MEMCACHED_CALLBACK_H__
-#define __MEMCACHED_CALLBACK_H__
+#ifndef __LIBMEMCACHED_CALLBACK_H__
+#define __LIBMEMCACHED_CALLBACK_H__
+
+struct memcached_callback_st {
+  memcached_execute_fn *callback;
+  void *context;
+  uint32_t number_of_callback;
+};
 
 #ifdef __cplusplus
 extern "C" {
@@ -29,4 +35,4 @@ void *memcached_callback_get(memcached_st *ptr,
 }
 #endif
 
-#endif /* __MEMCACHED_CALLBACK_H__ */
+#endif /* __LIBMEMCACHED_CALLBACK_H__ */