First pass on updating docs.
[awesomized/libmemcached] / libmemcached / strerror.c
index f1d651c9f7013e490398d3c9e7514f49eb0cfad5..b3ac2b7586dfc5a345dbced420045b641cb3e58e 100644 (file)
@@ -1,7 +1,8 @@
 #include "common.h"
 
-const char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_return_t rc)
+const char *memcached_strerror(memcached_st *ptr, memcached_return_t rc)
 {
+  (void)ptr;
   switch (rc)
   {
   case MEMCACHED_SUCCESS:
@@ -82,6 +83,20 @@ const char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcac
     return "ITEM TOO BIG";
   case MEMCACHED_INVALID_ARGUMENTS:
      return "INVALID ARGUMENTS";
+  case MEMCACHED_KEY_TOO_BIG:
+     return "KEY RETURNED FROM SERVER WAS TOO LARGE";
+  case MEMCACHED_AUTH_PROBLEM:
+    return "FAILED TO SEND AUTHENTICATION TO SERVER";
+  case MEMCACHED_AUTH_FAILURE:
+    return "AUTHENTICATION FAILURE";
+  case MEMCACHED_AUTH_CONTINUE:
+    return "CONTINUE AUTHENTICATION";
+  case MEMCACHED_PARSE_ERROR:
+    return "ERROR OCCURED WHILE PARSING";
+  case MEMCACHED_PARSE_USER_ERROR:
+    return "USER INITIATED ERROR OCCURED WHILE PARSING";
+  case MEMCACHED_DEPRECATED:
+    return "DEPRECATED";
   case MEMCACHED_MAXIMUM_RETURN:
     return "Gibberish returned!";
   default: