summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-08-10 15:15:18 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-08-10 15:36:21 +0200
commitf8ec7f6cb19c4cc27398bdc0482b531e601d4291 (patch)
tree52c06e88c413547579c9e804a5c78d96e46bd4ba /source4/libnet
parent8338fe4bfbc935e3cff059383dd07d419f58c696 (diff)
downloadsamba-f8ec7f6cb19c4cc27398bdc0482b531e601d4291.tar.gz
samba-f8ec7f6cb19c4cc27398bdc0482b531e601d4291.tar.bz2
samba-f8ec7f6cb19c4cc27398bdc0482b531e601d4291.zip
pytalloc: Use consistent prefix for functions, add ABI file.
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/py_net.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c
index b43f69bf0f..0fae791d69 100644
--- a/source4/libnet/py_net.c
+++ b/source4/libnet/py_net.c
@@ -1,6 +1,7 @@
/*
Unix SMB/CIFS implementation.
Samba utility functions
+
Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2008-2010
Copyright (C) Kamen Mazdrashki <kamen.mazdrashki@postpath.com> 2009
@@ -341,7 +342,7 @@ static PyObject *py_dom_sid_FromSid(struct dom_sid *sid)
if (dom_sid_Type == NULL)
return NULL;
- return py_talloc_reference((PyTypeObject *)dom_sid_Type, sid);
+ return pytalloc_reference((PyTypeObject *)dom_sid_Type, sid);
}
static PyObject *py_net_vampire(py_net_Object *self, PyObject *args, PyObject *kwargs)
@@ -453,7 +454,7 @@ static PyObject *py_net_replicate_init(py_net_Object *self, PyObject *args, PyOb
s->chunk.forest = &s->forest;
s->chunk.dest_dsa = &s->dest_dsa;
- return PyCObject_FromTallocPtr(s);
+ return pytalloc_CObject_FromTallocPtr(s);
}
@@ -486,7 +487,7 @@ static PyObject *py_net_replicate_chunk(py_net_Object *self, PyObject *args, PyO
if (!py_check_dcerpc_type(py_ctr, "samba.dcerpc.drsuapi", "DsGetNCChangesCtr1")) {
return NULL;
}
- s->chunk.ctr1 = py_talloc_get_ptr(py_ctr);
+ s->chunk.ctr1 = pytalloc_get_ptr(py_ctr);
s->partition.nc = *s->chunk.ctr1->naming_context;
s->partition.more_data = s->chunk.ctr1->more_data;
s->partition.source_dsa_guid = s->chunk.ctr1->source_dsa_guid;
@@ -497,7 +498,7 @@ static PyObject *py_net_replicate_chunk(py_net_Object *self, PyObject *args, PyO
if (!py_check_dcerpc_type(py_ctr, "samba.dcerpc.drsuapi", "DsGetNCChangesCtr6")) {
return NULL;
}
- s->chunk.ctr6 = py_talloc_get_ptr(py_ctr);
+ s->chunk.ctr6 = pytalloc_get_ptr(py_ctr);
s->partition.nc = *s->chunk.ctr6->naming_context;
s->partition.more_data = s->chunk.ctr6->more_data;
s->partition.source_dsa_guid = s->chunk.ctr6->source_dsa_guid;