From: Stefan Metzmacher Date: Sat, 12 Nov 2022 15:27:30 +0000 (+0000) Subject: tevent: allow the "standard" backend to be overloaded X-Git-Tag: tevent-0.14.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab49d9ee4ee463f67f0986999e7da6fab72d28ed;p=thirdparty%2Fsamba.git tevent: allow the "standard" backend to be overloaded We'll export tevent_find_ops_byname() soon and will allow the context_init() function of backends to find that standard ops and hand over to standard_ops->context_init(). Signed-off-by: Stefan Metzmacher Reviewed-by: Pavel Filipenský Reviewed-by: Volker Lendecke --- diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c index 38720204e02..749cad0db77 100644 --- a/lib/tevent/tevent_standard.c +++ b/lib/tevent/tevent_standard.c @@ -166,7 +166,7 @@ static int std_event_context_init(struct tevent_context *ev) * pointers. */ - if (ev->ops == &std_event_ops) { + if (ev->ops->loop_once == NULL) { glue = talloc_zero(ev, struct std_event_glue); if (glue == NULL) { return -1;