Fixing increment and decrement to take a 64bit unsigned value.
[awesomized/libmemcached] / lib / memcached_strerror.c
index 854df8b95eee13fd033567919e90c4a0826b3574..f541c17e4a9f592e5199b66a53bb5202a538a6b7 100644 (file)
@@ -1,4 +1,4 @@
-#include <memcached.h>
+#include "common.h"
 
 char *memcached_strerror(memcached_st *ptr, memcached_return rc)
 {
@@ -34,6 +34,8 @@ char *memcached_strerror(memcached_st *ptr, memcached_return rc)
     return "CONNECTION DATA DOES NOT EXIST";
   case MEMCACHED_NOTSTORED:
     return "NOT STORED";
+  case MEMCACHED_STORED:
+    return "STORED";
   case MEMCACHED_NOTFOUND:
     return "NOT FOUND";
   case MEMCACHED_MEMORY_ALLOCATION_FAILURE:
@@ -44,6 +46,20 @@ char *memcached_strerror(memcached_st *ptr, memcached_return rc)
     return "SOME ERRORS WERE REPORTED";
   case MEMCACHED_NO_SERVERS:
     return "NO SERVERS DEFINED";
+  case MEMCACHED_END:
+    return "SERVER END";
+  case MEMCACHED_DELETED:
+    return "SERVER DELETE";
+  case MEMCACHED_VALUE:
+    return "SERVER VALUE";
+  case MEMCACHED_STAT:
+    return "STAT VALUE";
+  case MEMCACHED_ERRNO:
+    return "SYSTEM ERROR";
+  case MEMCACHED_FAIL_UNIX_SOCKET:
+    return "COULD NOT OPEN UNIX SOCKET";
+  case MEMCACHED_NOT_SUPPORTED:
+    return "ACTION NOT SUPPORTED";
   case MEMCACHED_MAXIMUM_RETURN:
     return "Gibberish returned!";
   default: