1 #ifndef ACL_MSG_INCLUDE_H 2 #define ACL_MSG_INCLUDE_H 12 #undef USE_PRINTF_MACRO 105 ACL_API
void acl_msg_open(
const char *log_file,
const char *info_pre);
123 #ifndef USE_PRINTF_MACRO 130 ACL_API
void ACL_PRINTF(1, 2) acl_msg_info(const
char *
fmt,...);
137 ACL_API
void ACL_PRINTF(1, 2) acl_msg_warn(const
char *
fmt,...);
144 ACL_API
void ACL_PRINTF(1, 2) acl_msg_error(const
char *
fmt,...);
151 ACL_API
void ACL_PRINTF(1, 2) acl_msg_fatal(const
char *
fmt,...);
160 acl_msg_fatal_status(
int status, const
char *
fmt,...);
167 ACL_API
void ACL_PRINTF(1, 2) acl_msg_panic(const
char *
fmt,...);
227 #define acl_msg_info acl_msg_printf 228 #define acl_msg_warn acl_msg_printf 229 #define acl_msg_error acl_msg_printf 230 #define acl_msg_fatal acl_msg_printf 231 #define acl_msg_panic acl_msg_printf 243 ACL_API
const char *
acl_strerror(
unsigned int errnum,
char *buffer,
int size);
278 ACL_API
void ACL_PRINTF(1, 2) acl_msg_printf(const
char *
fmt,...);
ACL_API void acl_msg_open(const char *log_file, const char *info_pre)
ACL_API int acl_last_error(void)
ACL_API void acl_msg_pre_write(ACL_MSG_PRE_WRITE_FN pre_write, void *ctx)
void(* ACL_MSG_WRITE_FN)(void *ctx, const char *fmt, va_list ap)
void(* ACL_MSG_CLOSE_FN)(void *ctx)
int(* ACL_MSG_OPEN_FN)(const char *file_name, void *ctx)
ACL_API void ACL_PRINTF(1, 2) acl_msg_info(const char *fmt
ACL_API const char * acl_last_strerror(char *buffer, int size)
ACL_API void ACL_API void ACL_API void ACL_API void ACL_API void const char ACL_API void ACL_API void acl_msg_info2(const char *fmt, va_list ap)
ACL_API void acl_msg_warn2(const char *fmt, va_list ap)
ACL_API void acl_set_error(int errnum)
ACL_API const char * acl_strerror(unsigned int errnum, char *buffer, int size)
ACL_API void acl_msg_unregister(void)
void(* ACL_MSG_PRE_WRITE_FN)(void *ctx, const char *fmt, va_list ap)
ACL_API void acl_msg_error2(const char *fmt, va_list ap)
ACL_API void acl_msg_close(void)
ACL_API void acl_msg_fatal_status2(int status, const char *fmt, va_list ap)
ACL_API void acl_msg_fatal2(const char *fmt, va_list ap)
ACL_API void acl_msg_trace_enable(int onoff)
ACL_API void ACL_API void ACL_API void ACL_API void ACL_API void const char * fmt
ACL_API void acl_msg_open2(ACL_VSTREAM *fp, const char *info_pre)
ACL_API const char * acl_strerror1(unsigned int errnum)
ACL_API void acl_msg_stdout_enable(int onoff)
ACL_API int acl_msg_verbose
ACL_API void acl_msg_panic2(const char *fmt, va_list ap)
ACL_API void acl_msg_register(ACL_MSG_OPEN_FN open_fn, ACL_MSG_CLOSE_FN close_fn, ACL_MSG_WRITE_FN write_fn, void *ctx)
ACL_API const char * acl_last_serror(void)