diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-11 17:22:56 -0200 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-12 09:38:36 -0300 |
commit | b58553f67867dc3e09243a137de560f83758f4a4 (patch) | |
tree | fbd8e7b9a1dfb0af95c55ec7af8af7da3982a7c0 /libshiboken/pyenum.h | |
parent | 627d4cc994ba1c122995b367e2fc63a02d02d04a (diff) |
Add visibility policies to libshiboken and for bindings generated by shiboken generator.
As shiboken generator needs minor changes to support inter-module dependencies, these changes
about symbol visibility does not support inter-module dependencies, however support it is
simple, because we just need to make some symbols visible to other DSO's.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'libshiboken/pyenum.h')
-rw-r--r-- | libshiboken/pyenum.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libshiboken/pyenum.h b/libshiboken/pyenum.h index ab32052a4..18dc6730c 100644 --- a/libshiboken/pyenum.h +++ b/libshiboken/pyenum.h @@ -36,6 +36,7 @@ #define PYENUM_H #include <Python.h> +#include "shibokenmacros.h" namespace Shiboken { @@ -49,16 +50,16 @@ typedef struct { PyObject* ob_name; } PyEnumObject; -PyAPI_FUNC(PyObject*) PyEnumObject_repr(PyObject* self); -PyAPI_FUNC(PyObject*) PyEnumObject_name(PyObject* self); -PyAPI_FUNC(PyObject*) PyEnumObject_NonExtensibleNew(PyTypeObject* type, PyObject* args, PyObject* kwds); +LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) PyEnumObject_repr(PyObject* self); +LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) PyEnumObject_name(PyObject* self); +LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) PyEnumObject_NonExtensibleNew(PyTypeObject* type, PyObject* args, PyObject* kwds); } // extern "C" -PyObject* PyEnumObject_New(PyTypeObject *instanceType, +LIBSHIBOKEN_API PyObject* PyEnumObject_New(PyTypeObject *instanceType, long item_value, const char* item_name); -PyObject* PyEnumObject_New(PyTypeObject *instanceType, +LIBSHIBOKEN_API PyObject* PyEnumObject_New(PyTypeObject *instanceType, long item_value, PyObject* item_name = 0); |