libisdn
|
00001 00005 #ifndef __ASN1_LOG_H__ 00006 #define __ASN1_LOG_H__ 00007 00008 #if defined(HAVE_ATTRIBUTE_FORMAT_PRINTF) 00009 #define __printf_format(x, y) __attribute__ ((format (printf, x, y))) 00010 #else 00011 #define __printf_format(x, y) 00012 #endif 00013 00014 void asn1_log(const int level, const char *fmt, ...) __printf_format(2, 3); 00015 00016 void asn1_error(const char *fmt, ...) __printf_format(1, 2); 00017 void asn1_info(const char *fmt, ...) __printf_format(1, 2); 00018 void asn1_debug(const char *fmt, ...) __printf_format(1, 2); 00019 void asn1_trace(const char *fmt, ...) __printf_format(1, 2); 00020 00021 int asn1_set_loglevel(const asn1_loglevel_t level); 00022 int asn1_set_loglevel_by_name(const char *name); 00023 asn1_loglevel_t asn1_get_loglevel(void); 00024 const char *asn1_get_loglevel_name(void); 00025 const char *asn1_loglevel_name(const asn1_loglevel_t id); 00026 00027 #endif /* __ASN1_LOG_H__ */