1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-22 16:23:49 +03:00

pidl/python: Fix compilation of py_echo.

This commit is contained in:
Jelmer Vernooij
2008-01-14 02:48:50 +01:00
parent 2d2cb6486e
commit 5ee99ff31c
5 changed files with 42 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ OBJ_FILES = smbpython.o
[SUBSYSTEM::LIBPYTHON]
PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON
INIT_FUNCTION_SENTINEL = { NULL, NULL }
OBJ_FILES = modules.o
OBJ_FILES = modules.o pytalloc.o
[PYTHON::python_uuid]
PRIVATE_DEPENDENCIES = LIBNDR

View File

@@ -18,6 +18,7 @@
*/
#include "includes.h"
#include "scripting/python/pytalloc.h"
void py_talloc_dealloc(PyObject* self)
{
@@ -26,13 +27,13 @@ void py_talloc_dealloc(PyObject* self)
PyObject_Del(self);
}
PyObject *py_talloc_import(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
PyObject *py_talloc_import_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
void *ptr)
{
PyObject *ret = PyObject_New(py_talloc_Object, &py_type);
py_talloc_Object *ret = PyObject_New(py_talloc_Object, py_type);
ret->talloc_ctx = talloc_reference(mem_ctx, ptr);
ret->ptr = ptr;
return ret;
return (PyObject *)ret;
}
PyObject *py_talloc_default_repr(PyObject *py_obj)