/* Copyright (C) 2011 the GSS-PROXY contributors, see COPYING for license */ #ifndef _GP_DEBUG_H_ #define _GP_DEBUG_H_ #include #include #include #include extern int gp_debug; void gp_debug_enable(int); void gp_debug_printf(const char *format, ...); void gp_debug_time_printf(const char *format, ...); #define GPDEBUG(...) do { \ if (gp_debug) { \ gp_debug_time_printf(__VA_ARGS__); \ } \ } while(0) #define GPDEBUGN(lvl, ...) do { \ if (lvl <= gp_debug) { \ gp_debug_time_printf(__VA_ARGS__); \ } \ } while(0) void gp_log_failure(gss_OID mech, uint32_t maj, uint32_t min); #endif /* _GP_DEBUG_H_ */