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/providers/data_provider_be.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/providers/data_provider_be.c')
-rw-r--r-- | server/providers/data_provider_be.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/providers/data_provider_be.c b/server/providers/data_provider_be.c index 9ed3d2ce..c9faff95 100644 --- a/server/providers/data_provider_be.c +++ b/server/providers/data_provider_be.c @@ -29,6 +29,7 @@ #include <string.h> #include <sys/time.h> #include <errno.h> +#include <dlfcn.h> #include <security/pam_appl.h> #include <security/pam_modules.h> @@ -168,8 +169,8 @@ struct be_async_req { struct be_req *req; }; -static void be_async_req_handler(struct event_context *ev, - struct timed_event *te, +static void be_async_req_handler(struct tevent_context *ev, + struct tevent_timer *te, struct timeval tv, void *pvt) { struct be_async_req *async_req; @@ -184,7 +185,7 @@ static int be_file_request(struct be_ctx *ctx, struct be_req *req) { struct be_async_req *areq; - struct timed_event *te; + struct tevent_timer *te; struct timeval tv; areq = talloc(req, struct be_async_req); @@ -198,7 +199,7 @@ static int be_file_request(struct be_ctx *ctx, tv.tv_sec = 0; tv.tv_usec = 0; - te = event_add_timed(ctx->ev, req, tv, be_async_req_handler, areq); + te = tevent_add_timer(ctx->ev, req, tv, be_async_req_handler, areq); if (te == NULL) { return EIO; } @@ -769,7 +770,7 @@ done: int be_process_init(TALLOC_CTX *mem_ctx, const char *be_name, const char *be_domain, - struct event_context *ev, + struct tevent_context *ev, struct confdb_ctx *cdb) { struct be_ctx *ctx; |