summaryrefslogtreecommitdiffstats
path: root/server/confdb
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-02-25 16:40:17 -0500
committerSimo Sorce <ssorce@redhat.com>2009-02-26 09:13:20 -0500
commitc9f6d2795fde2f9bf80277d425df2b44bc860226 (patch)
tree301e1217eb5fda73351e9c7fb2f73048853942df /server/confdb
parent03fa4034a6a74a326e5340dae42d85eea4516b3c (diff)
downloadsssd-c9f6d2795fde2f9bf80277d425df2b44bc860226.tar.gz
sssd-c9f6d2795fde2f9bf80277d425df2b44bc860226.tar.xz
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/confdb')
-rw-r--r--server/confdb/confdb.c5
-rw-r--r--server/confdb/confdb.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c
index 743ce2778..0435191be 100644
--- a/server/confdb/confdb.c
+++ b/server/confdb/confdb.c
@@ -20,9 +20,6 @@
*/
#define _GNU_SOURCE
-#include "config.h"
-#include <string.h>
-#include <errno.h>
#include "ldb.h"
#include "ldb_errors.h"
#include "util/util.h"
@@ -566,7 +563,7 @@ done:
}
int confdb_init(TALLOC_CTX *mem_ctx,
- struct event_context *ev,
+ struct tevent_context *ev,
struct confdb_ctx **cdb_ctx,
char *confdb_location)
{
diff --git a/server/confdb/confdb.h b/server/confdb/confdb.h
index 57da19675..a1d808559 100644
--- a/server/confdb/confdb.h
+++ b/server/confdb/confdb.h
@@ -19,6 +19,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdbool.h>
+#include "talloc.h"
+#include "tevent.h"
+
#define CONFDB_FILE "config.ldb"
struct confdb_ctx;
@@ -49,7 +53,7 @@ int confdb_get_bool(struct confdb_ctx *cdb, TALLOC_CTX *ctx,
bool defval, bool *result);
int confdb_init(TALLOC_CTX *mem_ctx,
- struct event_context *ev,
+ struct tevent_context *ev,
struct confdb_ctx **cdb_ctx,
char *confdb_location);