summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-12-08 15:10:21 +0100
committerStefan Metzmacher <metze@samba.org>2010-12-08 19:07:12 +0100
commit8c6b756aa792cc058938820a64a308b3dd380eee (patch)
tree97c38a4c4592f2f938c0ff11dd0d1da81d43b205 /lib/talloc
parent288383aa83617baa3c17ac3a2ba997a4a9bbc462 (diff)
downloadsamba-8c6b756aa792cc058938820a64a308b3dd380eee.tar.gz
talloc: mark pytalloc-util functions as _PUBLIC_
metze
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/pytalloc_util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/talloc/pytalloc_util.c b/lib/talloc/pytalloc_util.c
index 65d830f30e6..c8a7e6ac587 100644
--- a/lib/talloc/pytalloc_util.c
+++ b/lib/talloc/pytalloc_util.c
@@ -23,7 +23,7 @@
#include "pytalloc.h"
#include <assert.h>
-PyTypeObject *PyTalloc_GetObjectType(void)
+_PUBLIC_ PyTypeObject *PyTalloc_GetObjectType(void)
{
static PyTypeObject *type = NULL;
PyObject *mod;
@@ -46,7 +46,7 @@ PyTypeObject *PyTalloc_GetObjectType(void)
/**
* Import an existing talloc pointer into a Python object.
*/
-PyObject *py_talloc_steal_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
+_PUBLIC_ PyObject *py_talloc_steal_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
void *ptr)
{
py_talloc_Object *ret = (py_talloc_Object *)py_type->tp_alloc(py_type, 0);
@@ -65,7 +65,7 @@ PyObject *py_talloc_steal_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
/**
* Import an existing talloc pointer into a Python object.
*/
-PyObject *py_talloc_steal(PyTypeObject *py_type, void *ptr)
+_PUBLIC_ PyObject *py_talloc_steal(PyTypeObject *py_type, void *ptr)
{
return py_talloc_steal_ex(py_type, ptr, ptr);
}
@@ -76,7 +76,7 @@ PyObject *py_talloc_steal(PyTypeObject *py_type, void *ptr)
* original parent, and creating a reference to the object in the python
* object
*/
-PyObject *py_talloc_reference_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx, void *ptr)
+_PUBLIC_ PyObject *py_talloc_reference_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx, void *ptr)
{
py_talloc_Object *ret;
@@ -102,7 +102,7 @@ static void py_cobject_talloc_free(void *ptr)
talloc_free(ptr);
}
-PyObject *PyCObject_FromTallocPtr(void *ptr)
+_PUBLIC_ PyObject *PyCObject_FromTallocPtr(void *ptr)
{
if (ptr == NULL) {
Py_RETURN_NONE;
@@ -110,7 +110,7 @@ PyObject *PyCObject_FromTallocPtr(void *ptr)
return PyCObject_FromVoidPtr(ptr, py_cobject_talloc_free);
}
-int PyTalloc_Check(PyObject *obj)
+_PUBLIC_ int PyTalloc_Check(PyObject *obj)
{
PyTypeObject *tp = PyTalloc_GetObjectType();