From c9f6d2795fde2f9bf80277d425df2b44bc860226 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 25 Feb 2009 16:40:17 -0500 Subject: 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. --- server/db/sysdb.c | 16 ++++++++-------- server/db/sysdb.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'server/db') diff --git a/server/db/sysdb.c b/server/db/sysdb.c index c4b040b6..ddd7fbe4 100644 --- a/server/db/sysdb.c +++ b/server/db/sysdb.c @@ -180,7 +180,7 @@ static int pwd_search(struct sysdb_search_ctx *sctx, } int sysdb_getpwnam(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, const char *name, @@ -209,7 +209,7 @@ int sysdb_getpwnam(TALLOC_CTX *mem_ctx, } int sysdb_getpwuid(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, uid_t uid, @@ -239,7 +239,7 @@ int sysdb_getpwuid(TALLOC_CTX *mem_ctx, } int sysdb_enumpwent(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, bool legacy, @@ -492,7 +492,7 @@ static int grp_search(struct sysdb_search_ctx *sctx, } int sysdb_getgrnam(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, const char *name, @@ -521,7 +521,7 @@ int sysdb_getgrnam(TALLOC_CTX *mem_ctx, } int sysdb_getgrgid(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, gid_t gid, @@ -551,7 +551,7 @@ int sysdb_getgrgid(TALLOC_CTX *mem_ctx, } int sysdb_enumgrent(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, bool legacy, @@ -691,7 +691,7 @@ static void sysdb_initgr_search(void *ptr, int status, } int sysdb_initgroups(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, const char *name, @@ -893,7 +893,7 @@ done: } int sysdb_init(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct confdb_ctx *cdb, const char *alt_db_path, struct sysdb_ctx **dbctx) diff --git a/server/db/sysdb.h b/server/db/sysdb.h index e0dd3349..c6cc4deb 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -87,13 +87,13 @@ struct confdb_ctx; typedef void (*sysdb_callback_t)(void *, int, struct ldb_result *); int sysdb_init(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct confdb_ctx *cdb, const char *alt_db_path, struct sysdb_ctx **dbctx); int sysdb_getpwnam(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, const char *name, @@ -101,7 +101,7 @@ int sysdb_getpwnam(TALLOC_CTX *mem_ctx, sysdb_callback_t fn, void *ptr); int sysdb_getpwuid(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, uid_t uid, @@ -109,14 +109,14 @@ int sysdb_getpwuid(TALLOC_CTX *mem_ctx, sysdb_callback_t fn, void *ptr); int sysdb_enumpwent(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, bool legacy, sysdb_callback_t fn, void *ptr); int sysdb_getgrnam(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, const char *name, @@ -124,7 +124,7 @@ int sysdb_getgrnam(TALLOC_CTX *mem_ctx, sysdb_callback_t fn, void *ptr); int sysdb_getgrgid(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, gid_t gid, @@ -132,14 +132,14 @@ int sysdb_getgrgid(TALLOC_CTX *mem_ctx, sysdb_callback_t fn, void *ptr); int sysdb_enumgrent(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, bool legacy, sysdb_callback_t fn, void *ptr); int sysdb_initgroups(TALLOC_CTX *mem_ctx, - struct event_context *ev, + struct tevent_context *ev, struct sysdb_ctx *ctx, const char *domain, const char *name, -- cgit