summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/pyldb.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-09 17:59:40 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-09 21:39:24 +1000
commitc95c3863dfec8e0160ff3bb217c6922666feed05 (patch)
tree67e6439bf9e9745cf6d2364997fb00ad7297fc8d /source4/lib/ldb/pyldb.c
parentc44bdbc01d53efcccb725600764b981216b1ff10 (diff)
downloadsamba-c95c3863dfec8e0160ff3bb217c6922666feed05.tar.gz
samba-c95c3863dfec8e0160ff3bb217c6922666feed05.tar.bz2
samba-c95c3863dfec8e0160ff3bb217c6922666feed05.zip
pyldb: expose PyLdbDn_FromDn()
This is needed by the dsdb python interface Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/lib/ldb/pyldb.c')
-rw-r--r--source4/lib/ldb/pyldb.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index b60f4fc3ee..57407ba0b6 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -357,24 +357,6 @@ static PyObject *py_ldb_dn_new(PyTypeObject *type, PyObject *args, PyObject *kwa
return (PyObject *)py_ret;
}
-PyObject *PyLdbDn_FromDn(struct ldb_dn *dn)
-{
- PyLdbDnObject *py_ret;
-
- if (dn == NULL) {
- Py_RETURN_NONE;
- }
-
- py_ret = (PyLdbDnObject *)PyLdbDn.tp_alloc(&PyLdbDn, 0);
- if (py_ret == NULL) {
- PyErr_NoMemory();
- return NULL;
- }
- py_ret->mem_ctx = talloc_new(NULL);
- py_ret->dn = talloc_reference(py_ret->mem_ctx, dn);
- return (PyObject *)py_ret;
-}
-
static void py_ldb_dn_dealloc(PyLdbDnObject *self)
{
talloc_free(self->mem_ctx);