Fix issue where hash might not be quite initialized. Also remove redundant bit to...
[awesomized/libmemcached] / libmemcached / callback.h
index de64a1996eb1a72152eac30af7c1c863145ab198..b4da80802c2dac996d0dcbe1fa131ff17f613812 100644 (file)
@@ -9,8 +9,15 @@
  *
  */
 
-#ifndef __MEMCACHED_CALLBACK_H__
-#define __MEMCACHED_CALLBACK_H__
+#pragma once
+#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 +36,4 @@ void *memcached_callback_get(memcached_st *ptr,
 }
 #endif
 
-#endif /* __MEMCACHED_CALLBACK_H__ */
+#endif /* __LIBMEMCACHED_CALLBACK_H__ */