mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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>
This commit is contained in:
parent
147a317b7b
commit
ab49d9ee4e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user