summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/pyldb.h
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-02-07 09:50:36 +0300
committerMatthieu Patou <mat@matws.net>2011-02-21 10:55:59 +0300
commit4c74c5f557f2fe6033f475126ada1f4d601df347 (patch)
tree8836bf305f7a3b4acfa026f759d94a47f25eb595 /source4/lib/ldb/pyldb.h
parent6d48a6ddb3af7547d4ad004858808d08ac8d1594 (diff)
downloadsamba-4c74c5f557f2fe6033f475126ada1f4d601df347.tar.gz
samba-4c74c5f557f2fe6033f475126ada1f4d601df347.tar.bz2
samba-4c74c5f557f2fe6033f475126ada1f4d601df347.zip
pyldb: create LdbResult, return value from ldb.search is now a LdbResult
Diffstat (limited to 'source4/lib/ldb/pyldb.h')
-rw-r--r--source4/lib/ldb/pyldb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/lib/ldb/pyldb.h b/source4/lib/ldb/pyldb.h
index c0cace2a5e..04d8ff856c 100644
--- a/source4/lib/ldb/pyldb.h
+++ b/source4/lib/ldb/pyldb.h
@@ -78,6 +78,20 @@ typedef struct {
} PyLdbTreeObject;
#define PyLdbTree_AsTree(pyobj) ((PyLdbTreeObject *)pyobj)->tree
+typedef struct {
+ PyObject_HEAD
+ TALLOC_CTX *mem_ctx;
+ PyObject *msgs;
+ PyObject *referals;
+ PyObject *controls;
+} PyLdbResultObject;
+
+typedef struct {
+ PyObject_HEAD
+ TALLOC_CTX *mem_ctx;
+ struct ldb_control *data;
+} PyLdbControlObject;
+
#define PyErr_LDB_ERROR_IS_ERR_RAISE(err,ret,ldb) \
if (ret != LDB_SUCCESS) { \
PyErr_SetLdbError(err, ret, ldb); \