Python plugin: Improve error reporting during plugin init
[claws.git] / src / plugins / python / composewindowtype.h
index 4d7b422a42adaeb326295d92c916b18d9540cb35..9de8546df9e249874b0356cea2555fb9a15054c3 100644 (file)
 #ifndef COMPOSEWINDOWTYPE_H
 #define COMPOSEWINDOWTYPE_H
 
+#include <glib.h>
 #include <Python.h>
 
 #include "compose.h"
 
-#ifndef PyMODINIT_FUNC  /* declarations for DLL import/export */
-#define PyMODINIT_FUNC void
-#endif
 
-PyMODINIT_FUNC initcomposewindow(PyObject *module);
+gboolean cmpy_add_composewindow(PyObject *module);
 
 PyObject* clawsmail_compose_new(PyObject *module, Compose *compose);