Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #if !defined(LT_ERROR_H)
00033 #define LT_ERROR_H 1
00034
00035 #include <libltdl/lt_system.h>
00036
00037 LT_BEGIN_C_DECLS
00038
00039
00040
00041
00042
00043
00044 #define lt_dlerror_table \
00045 LT_ERROR(UNKNOWN, "unknown error\0") \
00046 LT_ERROR(DLOPEN_NOT_SUPPORTED, "dlopen support not available\0") \
00047 LT_ERROR(INVALID_LOADER, "invalid loader\0") \
00048 LT_ERROR(INIT_LOADER, "loader initialization failed\0") \
00049 LT_ERROR(REMOVE_LOADER, "loader removal failed\0") \
00050 LT_ERROR(FILE_NOT_FOUND, "file not found\0") \
00051 LT_ERROR(DEPLIB_NOT_FOUND, "dependency library not found\0") \
00052 LT_ERROR(NO_SYMBOLS, "no symbols defined\0") \
00053 LT_ERROR(CANNOT_OPEN, "can't open the module\0") \
00054 LT_ERROR(CANNOT_CLOSE, "can't close the module\0") \
00055 LT_ERROR(SYMBOL_NOT_FOUND, "symbol not found\0") \
00056 LT_ERROR(NO_MEMORY, "not enough memory\0") \
00057 LT_ERROR(INVALID_HANDLE, "invalid module handle\0") \
00058 LT_ERROR(BUFFER_OVERFLOW, "internal buffer overflow\0") \
00059 LT_ERROR(INVALID_ERRORCODE, "invalid errorcode\0") \
00060 LT_ERROR(SHUTDOWN, "library already shutdown\0") \
00061 LT_ERROR(CLOSE_RESIDENT_MODULE, "can't close resident module\0") \
00062 LT_ERROR(INVALID_MUTEX_ARGS, "internal error (code withdrawn)\0")\
00063 LT_ERROR(INVALID_POSITION, "invalid search path insert position\0")\
00064 LT_ERROR(CONFLICTING_FLAGS, "symbol visibility can be global or local\0")
00065
00066
00067 enum {
00068 #define LT_ERROR(name, diagnostic) LT_CONC(LT_ERROR_, name),
00069 lt_dlerror_table
00070 #undef LT_ERROR
00071
00072 LT_ERROR_MAX
00073 };
00074
00075
00076 #define LT_ERROR_LEN_MAX (41)
00077
00078
00079 LT_SCOPE int lt_dladderror (const char *diagnostic);
00080 LT_SCOPE int lt_dlseterror (int errorcode);
00081
00082
00083 LT_END_C_DECLS
00084
00085 #endif