diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-11 00:43:23 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-11 00:43:23 +0200 |
commit | 8ed6f6d5a825c8b0e8d66d30877a91a96fe6e7a4 (patch) | |
tree | d63835e2a12772fe837825cb78c4159c6b44fd6f /source4/lib/ldb/ldb.i | |
parent | 574bf79f3bdaff50f902cb68d456c4672f3092be (diff) | |
download | samba-8ed6f6d5a825c8b0e8d66d30877a91a96fe6e7a4.tar.gz samba-8ed6f6d5a825c8b0e8d66d30877a91a96fe6e7a4.tar.bz2 samba-8ed6f6d5a825c8b0e8d66d30877a91a96fe6e7a4.zip |
Return SAM ldb context and loadparm context as part of C provision
result.
(This used to be commit a3e1b835656470f1a80f0fa69f53a9df849baee3)
Diffstat (limited to 'source4/lib/ldb/ldb.i')
-rw-r--r-- | source4/lib/ldb/ldb.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i index e01a1107d2..6b94f19cb5 100644 --- a/source4/lib/ldb/ldb.i +++ b/source4/lib/ldb/ldb.i @@ -251,6 +251,14 @@ fail: #ifdef SWIGPYTHON %{ +struct ldb_context *ldb_context_from_py_object(PyObject *py_obj) +{ + struct ldb_context *ldb_ctx; + if (SWIG_ConvertPtr(py_obj, (void *)&ldb_ctx, SWIGTYPE_p_ldb_context, 0 | 0 ) < 0) + return NULL; + return ldb_ctx; +} + int ldb_dn_from_pyobject(TALLOC_CTX *mem_ctx, PyObject *object, struct ldb_context *ldb_ctx, ldb_dn **dn) { |