summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/pytalloc.h1
-rw-r--r--lib/talloc/pytalloc_util.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/talloc/pytalloc.h b/lib/talloc/pytalloc.h
index be69c4d50c..128208e3f8 100644
--- a/lib/talloc/pytalloc.h
+++ b/lib/talloc/pytalloc.h
@@ -32,6 +32,7 @@ typedef struct {
/* Deallocate a py_talloc_Object */
void py_talloc_dealloc(PyObject* self);
+PyTypeObject *PyTalloc_GetObjectType(void);
int PyTalloc_Check(PyObject *);
/* Retrieve the pointer for a py_talloc_object. Like talloc_get_type()
diff --git a/lib/talloc/pytalloc_util.c b/lib/talloc/pytalloc_util.c
index c485cd1ca3..d6a8da2e59 100644
--- a/lib/talloc/pytalloc_util.c
+++ b/lib/talloc/pytalloc_util.c
@@ -23,7 +23,7 @@
#include "pytalloc.h"
#include <assert.h>
-static PyTypeObject *Get_TallocType(void)
+PyTypeObject *PyTalloc_GetObjectType(void)
{
static PyTypeObject *type = NULL;
PyObject *mod;
@@ -156,7 +156,7 @@ PyObject *PyString_FromString_check_null(const char *ptr)
int PyTalloc_Check(PyObject *obj)
{
- PyTypeObject *tp = Get_TallocType();
+ PyTypeObject *tp = PyTalloc_GetObjectType();
return PyObject_TypeCheck(obj, tp);
}