From 6b948cf54b75ac44c4857e8da8f7db251e00b67b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 21 Feb 2013 09:00:56 +0100 Subject: lib/util: add samba_tevent_set_debug() Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- lib/util/tevent_debug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/util/tevent_debug.c') diff --git a/lib/util/tevent_debug.c b/lib/util/tevent_debug.c index 6df58aeaf0..3f8c649a0b 100644 --- a/lib/util/tevent_debug.c +++ b/lib/util/tevent_debug.c @@ -65,13 +65,18 @@ static void samba_tevent_debug(void *context, } } +void samba_tevent_set_debug(struct tevent_context *ev, const char *name) +{ + tevent_set_debug(ev, samba_tevent_debug, name); +} + struct tevent_context *samba_tevent_context_init(TALLOC_CTX *mem_ctx) { struct tevent_context *ev; ev = tevent_context_init(mem_ctx); if (ev) { - tevent_set_debug(ev, samba_tevent_debug, NULL); + samba_tevent_set_debug(ev, NULL); } return ev; -- cgit