00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __JackError__
00023 #define __JackError__
00024
00025 #include <string.h>
00026 #include <errno.h>
00027 #include "JackCompilerDeps.h"
00028
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033
00034 SERVER_EXPORT void jack_error(const char *fmt, ...);
00035 SERVER_EXPORT void jack_info(const char *fmt, ...);
00036 SERVER_EXPORT void jack_log(const char *fmt, ...);
00037
00038 SERVER_EXPORT extern void (*jack_error_callback)(const char *desc);
00039 SERVER_EXPORT extern void (*jack_info_callback)(const char *desc);
00040
00041 SERVER_EXPORT extern void default_jack_error_callback(const char *desc);
00042 SERVER_EXPORT extern void default_jack_info_callback(const char *desc);
00043
00044 SERVER_EXPORT void silent_jack_error_callback(const char *desc);
00045 SERVER_EXPORT void silent_jack_info_callback(const char *desc);
00046
00047 SERVER_EXPORT int set_threaded_log_function();
00048
00049 #define LOG_LEVEL_INFO 1
00050 #define LOG_LEVEL_ERROR 2
00051
00052 void jack_log_function(int level, const char *message);
00053 typedef void (* jack_log_function_t)(int level, const char *message);
00054
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058
00059 #endif