[SCM] Samba Shared Repository - branch master updated
Jelmer Vernooij
jelmer at samba.org
Tue Nov 30 15:27:02 MST 2010
The branch, master has been updated
via e8aa266 talloc: Add talloc object.
from 783264e s3-waf: fix LIBNBT deps.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit e8aa266c97d7f5175f657f1b8d2c995bf879ae3d
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Tue Nov 30 22:22:15 2010 +0100
talloc: Add talloc object.
Autobuild-User: Jelmer Vernooij <jelmer at samba.org>
Autobuild-Date: Tue Nov 30 23:26:56 CET 2010 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
lib/talloc/pytalloc.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index 96a6122..7bdebb0 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -74,11 +74,26 @@ static PyMethodDef talloc_methods[] = {
{ NULL }
};
+static PyTypeObject TallocObject_Type = {
+ .tp_name = "talloc.Object",
+ .tp_basicsize = sizeof(py_talloc_Object),
+ .tp_dealloc = (destructor)py_talloc_dealloc,
+ .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
+ .tp_repr = py_talloc_default_repr,
+ .tp_compare = py_talloc_default_cmp,
+};
+
void inittalloc(void)
{
PyObject *m;
+ if (PyType_Ready(&TallocObject_Type) < 0)
+ return;
+
m = Py_InitModule3("talloc", talloc_methods, "Debug utilities for talloc-wrapped objects.");
if (m == NULL)
return;
+
+ Py_INCREF(&TallocObject_Type);
+ PyModule_AddObject(m, "Object", (PyObject *)&TallocObject_Type);
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list