summaryrefslogtreecommitdiffstats
path: root/libdimension-python/Scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension-python/Scene.c')
-rw-r--r--libdimension-python/Scene.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libdimension-python/Scene.c b/libdimension-python/Scene.c
index 48a41cb..bfbab63 100644
--- a/libdimension-python/Scene.c
+++ b/libdimension-python/Scene.c
@@ -18,10 +18,7 @@
* <http://www.gnu.org/licenses/>. *
*************************************************************************/
-typedef struct dmnsn_py_Scene {
- PyObject_HEAD
- dmnsn_scene *scene;
-} dmnsn_py_Scene;
+#include "Scene.h"
static PyObject *
dmnsn_py_Scene_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
@@ -53,7 +50,7 @@ static PyGetSetDef dmnsn_py_Scene_getsetters[] = {
{ NULL }
};
-static PyTypeObject dmnsn_py_SceneType = {
+PyTypeObject dmnsn_py_SceneType = {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "dimension.Scene",
.tp_basicsize = sizeof(dmnsn_py_Scene),
@@ -66,7 +63,7 @@ static PyTypeObject dmnsn_py_SceneType = {
.tp_new = dmnsn_py_Scene_new,
};
-static bool
+bool
dmnsn_py_init_SceneType(void)
{
Py_INCREF(&dmnsn_py_SceneType);