diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-25 15:26:42 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-08-13 09:54:15 -0400 |
commit | ab81505e080e72c2217cb3946b04eee872397763 (patch) | |
tree | 4e3536178f2f6f9a27e31e074b4852545d6b294a /source4/libcli/composite | |
parent | f364daed2203170bc772c8ff9bb28f78da615669 (diff) | |
download | samba-ab81505e080e72c2217cb3946b04eee872397763.tar.gz samba-ab81505e080e72c2217cb3946b04eee872397763.tar.bz2 samba-ab81505e080e72c2217cb3946b04eee872397763.zip |
s4:libcli: use tevent_ fn names instead of legacy event_ ones
Diffstat (limited to 'source4/libcli/composite')
-rw-r--r-- | source4/libcli/composite/composite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/libcli/composite/composite.c b/source4/libcli/composite/composite.c index b326b51c1a..26cf5c80ac 100644 --- a/source4/libcli/composite/composite.c +++ b/source4/libcli/composite/composite.c @@ -55,7 +55,7 @@ _PUBLIC_ NTSTATUS composite_wait(struct composite_context *c) c->used_wait = true; while (c->state < COMPOSITE_STATE_DONE) { - if (event_loop_once(c->event_ctx) != 0) { + if (tevent_loop_once(c->event_ctx) != 0) { return NT_STATUS_UNSUCCESSFUL; } } @@ -106,7 +106,7 @@ _PUBLIC_ void composite_error(struct composite_context *ctx, NTSTATUS status) return; } if (!ctx->used_wait && !ctx->async.fn) { - event_add_timed(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx); + tevent_add_timer(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx); } ctx->status = status; ctx->state = COMPOSITE_STATE_ERROR; @@ -136,7 +136,7 @@ _PUBLIC_ bool composite_is_ok(struct composite_context *ctx) _PUBLIC_ void composite_done(struct composite_context *ctx) { if (!ctx->used_wait && !ctx->async.fn) { - event_add_timed(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx); + tevent_add_timer(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx); } ctx->state = COMPOSITE_STATE_DONE; if (ctx->async.fn != NULL) { @@ -157,7 +157,7 @@ _PUBLIC_ void composite_continue(struct composite_context *ctx, already finished, then we should run the callback with an immediate event, otherwise we can be stuck forever */ if (new_ctx->state >= COMPOSITE_STATE_DONE && continuation) { - event_add_timed(new_ctx->event_ctx, new_ctx, timeval_zero(), composite_trigger, new_ctx); + tevent_add_timer(new_ctx->event_ctx, new_ctx, timeval_zero(), composite_trigger, new_ctx); } } |