diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-02-25 16:40:17 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-02-26 09:13:20 -0500 |
commit | c9f6d2795fde2f9bf80277d425df2b44bc860226 (patch) | |
tree | 301e1217eb5fda73351e9c7fb2f73048853942df /server/responder/nss/nsssrv_dp.c | |
parent | 03fa4034a6a74a326e5340dae42d85eea4516b3c (diff) | |
download | sssd-c9f6d2795fde2f9bf80277d425df2b44bc860226.tar.gz sssd-c9f6d2795fde2f9bf80277d425df2b44bc860226.tar.bz2 sssd-c9f6d2795fde2f9bf80277d425df2b44bc860226.zip |
Rebase the code to use talloc, tdb, tevent, ldb as external
dependencies based on the latest samba code.
Convert all references to the old events library to use the
renamed tevent library.
Diffstat (limited to 'server/responder/nss/nsssrv_dp.c')
-rw-r--r-- | server/responder/nss/nsssrv_dp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/responder/nss/nsssrv_dp.c b/server/responder/nss/nsssrv_dp.c index 46e21801..d4406e40 100644 --- a/server/responder/nss/nsssrv_dp.c +++ b/server/responder/nss/nsssrv_dp.c @@ -31,7 +31,7 @@ struct nss_dp_req { nss_dp_callback_t callback; void *callback_ctx; - struct timed_event *te; + struct tevent_timer *te; DBusPendingCall *pending_reply; }; @@ -46,8 +46,8 @@ static int nss_dp_req_destructor(void *ptr) return 0; } -static void nss_dp_send_acct_timeout(struct event_context *ev, - struct timed_event *te, +static void nss_dp_send_acct_timeout(struct tevent_context *ev, + struct tevent_timer *te, struct timeval t, void *data) { struct nss_dp_req *ndp_req; @@ -198,7 +198,7 @@ int nss_dp_send_acct_req(struct nss_ctx *nctx, TALLOC_CTX *memctx, gettimeofday(&tv, NULL); tv.tv_sec += timeout/1000; tv.tv_usec += (timeout%1000) * 1000; - ndp_req->te = event_add_timed(nctx->ev, memctx, tv, + ndp_req->te = tevent_add_timer(nctx->ev, memctx, tv, nss_dp_send_acct_timeout, ndp_req); /* Set up the reply handler */ @@ -327,14 +327,14 @@ struct nss_dp_pvt_ctx { }; static int nss_dp_conn_destructor(void *data); -static void nss_dp_reconnect(struct event_context *ev, - struct timed_event *te, +static void nss_dp_reconnect(struct tevent_context *ev, + struct tevent_timer *te, struct timeval tv, void *data); static void nss_dp_conn_reconnect(struct nss_dp_pvt_ctx *pvt) { struct nss_ctx *nctx; - struct timed_event *te; + struct tevent_timer *te; struct timeval tv; struct sbus_method_ctx *sm_ctx; char *sbus_address; @@ -376,7 +376,7 @@ static void nss_dp_conn_reconnect(struct nss_dp_pvt_ctx *pvt) tv.tv_sec = now +5; tv.tv_usec = 0; - te = event_add_timed(nctx->ev, nctx, tv, nss_dp_reconnect, pvt); + te = tevent_add_timer(nctx->ev, nctx, tv, nss_dp_reconnect, pvt); if (te == NULL) { DEBUG(4, ("Failed to add timed event! Giving up\n")); } else { @@ -385,8 +385,8 @@ static void nss_dp_conn_reconnect(struct nss_dp_pvt_ctx *pvt) } } -static void nss_dp_reconnect(struct event_context *ev, - struct timed_event *te, +static void nss_dp_reconnect(struct tevent_context *ev, + struct tevent_timer *te, struct timeval tv, void *data) { struct nss_dp_pvt_ctx *pvt; |