diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-11-12 15:27:30 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2023-01-18 16:26:36 +0000 |
commit | ab49d9ee4ee463f67f0986999e7da6fab72d28ed (patch) | |
tree | 3402b802b13167d724d11262b28be71749eec5a6 | |
parent | 147a317b7b92e60c5940d875dbd7aef19824834e (diff) | |
download | samba-ab49d9ee4ee463f67f0986999e7da6fab72d28ed.tar.gz |
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 <metze@samba.org>
Reviewed-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r-- | lib/tevent/tevent_standard.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |