error.c

00001 /*
00002  * error.c
00003  */
00004 
00005 #define LIBNFSNAPI_BUILDING_LIB
00006 
00007 #include "error.h"
00008 
00009 
00010 const char *libnfsnapi_strerror(libnfsnapi_error_t error)
00011 {
00012 #define ER(x)   case LIBNFSNAPI_ERROR_##x
00013         switch (error) {
00014                 ER(NONE):       return "No error";
00015                 ER(NOTIMPLEMENTED):     return "Not implemented";
00016                 ER(MEMORY):     return "Out of memory";
00017                 ER(NETWORK):    return "Network error";
00018                 ER(LIBCURL):    return "Problem with libcurl";
00019                 ER(ARGUMENT):   return "Bad argument";
00020                 ER(PROTOCOL):   return "Server broke protocol";
00021         }
00022 
00023         return "** Unknown error **";
00024 }

Generated on Sat Jan 13 17:42:28 2007 for libNFSNapi by  doxygen 1.4.6