* Applications using the library must decide where to
* redirect debugging messages
*/
+#undef tevent_debug
void tevent_debug(struct tevent_context *ev, enum tevent_debug_level level,
const char *fmt, ...)
{
void tevent_debug(struct tevent_context *ev, enum tevent_debug_level level,
const char *fmt, ...) PRINTF_ATTRIBUTE(3,4);
+static inline void __noop_tevent_debug(struct tevent_context *ev, enum tevent_debug_level level,
+ const char *fmt, ...) PRINTF_ATTRIBUTE(3,4);
+static inline void __noop_tevent_debug(struct tevent_context *ev, enum tevent_debug_level level,
+ const char *fmt, ...)
+{}
+#define tevent_debug __noop_tevent_debug
+
struct tevent_context {
/* the specific events implementation */
const struct tevent_ops *ops;