From f6052143ad01d77fd0e38ee86eada6a9bd364ce6 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 9 Jul 2007 01:49:49 +0000 Subject: r23753: Fix bitrot afflicting the ldb Python swig bindings. (This used to be commit 0141db0fc43fb55d4b6dd80c89b1a3aae689a873) --- source4/lib/ldb/swig/ldb.i | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/swig/ldb.i b/source4/lib/ldb/swig/ldb.i index 09d3461c2a..d695ce8b28 100644 --- a/source4/lib/ldb/swig/ldb.i +++ b/source4/lib/ldb/swig/ldb.i @@ -37,8 +37,9 @@ typedef long long int64_t; /* Include headers */ -#include "lib/ldb/include/ldb.h" +#include "lib/replace/replace.h" #include "lib/talloc/talloc.h" +#include "lib/ldb/include/ldb.h" %} @@ -179,7 +180,6 @@ struct ldb_message { struct ldb_dn *dn; unsigned int num_elements; struct ldb_message_element *elements; - void *private_data; }; /* @@ -213,11 +213,11 @@ const char *ldb_strerror(int ldb_err); int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[]); -int ldb_search(struct ldb_context *ldb, const struct ldb_dn *base, enum ldb_scope scope, const char *expression, const char * const *attrs, struct ldb_result **OUT); +int ldb_search(struct ldb_context *ldb, struct ldb_dn *base, enum ldb_scope scope, const char *expression, const char * const *attrs, struct ldb_result **OUT); -int ldb_delete(struct ldb_context *ldb, const struct ldb_dn *dn); +int ldb_delete(struct ldb_context *ldb, struct ldb_dn *dn); -int ldb_rename(struct ldb_context *ldb, const struct ldb_dn *olddn, const struct ldb_dn *newdn); +int ldb_rename(struct ldb_context *ldb, struct ldb_dn *olddn, struct ldb_dn *newdn); int ldb_add(struct ldb_context *ldb, const struct ldb_message *message); @@ -227,11 +227,11 @@ struct ldb_message *ldb_msg_new(void *mem_ctx); struct ldb_message_element *ldb_msg_find_element(const struct ldb_message *msg, const char *attr_name); -int ldb_msg_add_value(struct ldb_message *msg, const char *attr_name, const struct ldb_val *INPUT); +int ldb_msg_add_value(struct ldb_message *msg, const char *attr_name, const struct ldb_val *val, struct ldb_message_element **return_el); void ldb_msg_remove_attr(struct ldb_message *msg, const char *attr); -int ldb_msg_sanity_check(struct ldb_message *msg); +int ldb_msg_sanity_check(struct ldb_context *ldb, const struct ldb_message *msg); /* DN operations */ -- cgit