summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2007-07-09 01:49:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:10 -0500
commitf6052143ad01d77fd0e38ee86eada6a9bd364ce6 (patch)
tree4abaf0bfab2fb55ba39600e30b8a88e874e5579d /source4
parentb0db52b63aaf2278d72c5e0bafbbdb6582b85112 (diff)
downloadsamba-f6052143ad01d77fd0e38ee86eada6a9bd364ce6.tar.gz
samba-f6052143ad01d77fd0e38ee86eada6a9bd364ce6.tar.bz2
samba-f6052143ad01d77fd0e38ee86eada6a9bd364ce6.zip
r23753: Fix bitrot afflicting the ldb Python swig bindings.
(This used to be commit 0141db0fc43fb55d4b6dd80c89b1a3aae689a873)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/swig/ldb.i14
1 files changed, 7 insertions, 7 deletions
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 */