nfs-ganesha 1.4

err_HashTable.h

Go to the documentation of this file.
00001 #ifndef _ERR_HASHTABLE_H
00002 #define _ERR_HASHTABLE_H
00003 
00004 #include "log.h"
00005 #include "HashTable.h"
00006 
00031  
00043     static family_error_t __attribute__ ((__unused__)) tab_errctx_hash[] =
00044 {
00045 #define ERR_HASHTABLE_NO_ERROR       0
00046   {
00047   ERR_HASHTABLE_NO_ERROR, "ERR_HASHTABLE_NO_ERROR", "Success"},
00048 #define ERR_HASHTABLE_GET            1
00049   {
00050   ERR_HASHTABLE_GET, "ERR_HASHTABLE_GET", "Error when getting an entry"},
00051 #define ERR_HASHTABLE_SET            2
00052   {
00053   ERR_HASHTABLE_SET, "ERR_HASHTABLE_SET", "Error when setting an entry"},
00054 #define ERR_HASHTABLE_DEL            3
00055   {
00056   ERR_HASHTABLE_DEL, "ERR_HASHTABLE_DEL", "Error while deleting an entry"},
00057   {
00058   ERR_NULL, "ERR_NULL", ""}
00059 };
00060 
00061 static family_error_t __attribute__ ((__unused__)) tab_errstatus_hash[] =
00062 {
00063   {
00064   HASHTABLE_SUCCESS, "HASHTABLE_SUCCESS", "Success"},
00065   {
00066   HASHTABLE_UNKNOWN_HASH_TYPE, "HASHTABLE_UNKNOWN_HASH_TYPE", "Unknown hash type"},
00067   {
00068   HASHTABLE_INSERT_MALLOC_ERROR, "HASHTABLE_INSERT_MALLOC_ERROR",
00069         "Malloc error at insert time"},
00070   {
00071   HASHTABLE_ERROR_NO_SUCH_KEY, "HASHTABLE_ERROR_NO_SUCH_KEY", "No such key"},
00072   {
00073   HASHTABLE_ERROR_KEY_ALREADY_EXISTS, "HASHTABLE_ERROR_KEY_ALREADY_EXISTS",
00074         "Entry of that key already exists"},
00075   {
00076   HASHTABLE_ERROR_INVALID_ARGUMENT, "HASHTABLE_ERROR_INVALID_ARGUMENT",
00077         "Invalid argument"},
00078   {
00079   ERR_NULL, "ERR_NULL", ""}
00080 };
00081 
00082 #endif                          /* _ERR_HASHTABLE_H */