diff options
author | Matthieu Patou <mat@matws.net> | 2011-02-07 09:50:36 +0300 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2011-02-21 10:55:59 +0300 |
commit | 4c74c5f557f2fe6033f475126ada1f4d601df347 (patch) | |
tree | 8836bf305f7a3b4acfa026f759d94a47f25eb595 /source4/lib/ldb/pyldb.h | |
parent | 6d48a6ddb3af7547d4ad004858808d08ac8d1594 (diff) | |
download | samba-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.h | 14 |
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); \ |