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/samba_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/util/samba_util.h') diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index f59dc70f2f..6a4373e424 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -966,4 +966,12 @@ bool server_id_is_disconnected(const struct server_id *id); */ struct tevent_context *samba_tevent_context_init(TALLOC_CTX *mem_ctx); +/* + * if same samba code needs to use a specific tevent backend + * it can use something like this: + * + * samba_tevent_set_debug(ev, "pysmb_tevent"); + */ +void samba_tevent_set_debug(struct tevent_context *ev, const char *name); + #endif /* _SAMBA_UTIL_H_ */ -- cgit